Skip to content

Commit

Permalink
add: Quote now implement Serialize and Deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
meuter authored and xemwebe committed Mar 13, 2024
1 parent c967fc8 commit b7bcf19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/quotes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{collections::HashMap, fmt};

use serde::{
de::{self, Deserializer, MapAccess, SeqAccess, Visitor},
Deserialize,
Deserialize, Serialize,
};

use super::YahooError;
Expand Down Expand Up @@ -124,7 +124,7 @@ impl YResponse {
}

/// Struct for single quote
#[derive(Debug, Clone, PartialEq, PartialOrd)]
#[derive(Debug, Clone, PartialEq, PartialOrd, Deserialize, Serialize)]
pub struct Quote {
pub timestamp: u64,
pub open: f64,
Expand Down Expand Up @@ -396,7 +396,7 @@ mod tests {
"end": 1705525200,
"gmtoffset": -18000
}
]
]
"#;
Expand Down

0 comments on commit b7bcf19

Please sign in to comment.