Going somewhere.

This commit is contained in:
didier amyot committed 2023-04-03 11:55:34 -04:00
1 parent 0d0337a6aa
commit f140b50be4
17 files changed
+211 -20

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ use crate::db::securities::{list_securities, Security};
use rusqlite::Connection;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, Debug)]
pub struct SecurityDTO {
id: SecurityId,
symbol: String,
@@ -12,7 +12,7 @@ pub struct SecurityDTO {
}
impl SecurityDTO {
fn from_entity(sec: &Security) -> SecurityDTO {
pub fn from_entity(sec: &Security) -> SecurityDTO {
SecurityDTO {
id: sec.id(),
symbol: sec.symbol(),