Struct databento::historical::symbology::Resolution
source · pub struct Resolution {
pub mappings: HashMap<String, Vec<MappingInterval>>,
pub partial: Vec<String>,
pub not_found: Vec<String>,
pub stype_in: SType,
pub stype_out: SType,
}
Available on crate feature
historical
only.Expand description
A symbology resolution from one symbology type to another.
Fields§
§mappings: HashMap<String, Vec<MappingInterval>>
A mapping from input symbol to a list of resolved symbols in the output symbology.
partial: Vec<String>
A list of symbols that were resolved for part, but not all of the date range from the request.
not_found: Vec<String>
A list of symbols that were not resolved.
stype_in: SType
The input symbology type.
stype_out: SType
The output symbology type.
Implementations§
source§impl Resolution
impl Resolution
sourcepub fn symbol_map(&self) -> Result<TsSymbolMap>
pub fn symbol_map(&self) -> Result<TsSymbolMap>
Creates a symbology mapping from instrument ID and date to text symbol.
§Errors
This function returns an error if it’s unable to parse a symbol into an instrument ID.
Trait Implementations§
source§impl Clone for Resolution
impl Clone for Resolution
source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnwindSafe for Resolution
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