pub struct Screener {
pub key: String,
pub timestamp: Option<i64>,
pub sort_field: Option<String>,
pub frequency: Option<i64>,
pub items: Option<Vec<ScreenerItem>>,
pub extra: HashMap<String, Value>,
}Expand description
A SCREENER_EQUITY or SCREENER_OPTION ranking. Every frame
carries the whole list.
Fields§
§key: StringThe subscription key (field 0).
timestamp: Option<i64>Epoch milliseconds.
sort_field: Option<String>§frequency: Option<i64>Minutes the ranking covers; 0 is the whole day.
items: Option<Vec<ScreenerItem>>§extra: HashMap<String, Value>Fields the table does not describe, by wire key.
Implementations§
Source§impl Screener
impl Screener
Sourcepub fn from_content(content: &DataContent) -> Result<Self, Error>
pub fn from_content(content: &DataContent) -> Result<Self, Error>
Decode a content item using ScreenerFields::FIELDS.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Screener
impl<'de> Deserialize<'de> for Screener
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
Source§impl JsonSchema for Screener
Available on crate feature schemars only.
impl JsonSchema for Screener
Available on crate feature
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Screener
Auto Trait Implementations§
impl Freeze for Screener
impl RefUnwindSafe for Screener
impl Send for Screener
impl Sync for Screener
impl Unpin for Screener
impl UnsafeUnpin for Screener
impl UnwindSafe for Screener
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