Going somewhere.
This commit is contained in:
1 parent
0d0337a6aa
commit
f140b50be4
17 files changed
+211
-20
No files matched your search
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user