pub struct Candle {
pub close: String,
pub high: String,
pub low: String,
pub open: String,
pub resolution: Resolution,
pub time: i64,
pub volume: String,
}Expand description
Candle
JSON schema
{
"type": "object",
"required": [
"close",
"high",
"low",
"open",
"resolution",
"time",
"volume"
],
"properties": {
"close": {
"description": "DTO.CANDLE.CLOSE",
"examples": [
"51.2"
],
"type": "string"
},
"high": {
"description": "DTO.CANDLE.HIGH",
"examples": [
"51.8"
],
"type": "string"
},
"low": {
"description": "DTO.CANDLE.LOW",
"examples": [
"50.1"
],
"type": "string"
},
"open": {
"description": "DTO.CANDLE.OPEN",
"examples": [
"50.5"
],
"type": "string"
},
"resolution": {
"description": "DTO.CANDLE.RESOLUTION",
"examples": [
"1h"
],
"allOf": [
{
"$ref": "#/components/schemas/Resolution"
}
]
},
"time": {
"description": "DTO.CANDLE.TIME",
"examples": [
1709251200000
],
"type": "integer",
"format": "int64"
},
"volume": {
"description": "DTO.CANDLE.VOLUME",
"examples": [
"1000000"
],
"type": "string"
}
}
}Fields§
§close: StringDTO.CANDLE.CLOSE
high: StringDTO.CANDLE.HIGH
low: StringDTO.CANDLE.LOW
open: StringDTO.CANDLE.OPEN
resolution: ResolutionDTO.CANDLE.RESOLUTION
time: i64DTO.CANDLE.TIME
volume: StringDTO.CANDLE.VOLUME
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Candle
impl<'de> Deserialize<'de> for Candle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Candle
impl RefUnwindSafe for Candle
impl Send for Candle
impl Sync for Candle
impl Unpin for Candle
impl UnwindSafe for Candle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more