pub struct InstrumentCatalogSnapshot { /* private fields */ }Expand description
Immutable, indexed catalog revision safe to share across in-flight operations.
Implementations§
Source§impl InstrumentCatalogSnapshot
impl InstrumentCatalogSnapshot
pub fn compile(document: CatalogDocument) -> Result<Self, CatalogCompileError>
pub fn id(&self) -> &CatalogSnapshotId
pub fn asset(&self, asset: &AssetId) -> Option<&AssetSpec>
pub fn instrument_ids(&self) -> impl Iterator<Item = &InstrumentId>
pub fn spec_at( &self, instrument: &InstrumentId, at: DateTime<Utc>, ) -> Result<ResolvedInstrument, InstrumentResolutionError>
pub fn resolve( &self, selector: &InstrumentSelector, context: &InstrumentResolutionContext, at: DateTime<Utc>, ) -> Result<ResolvedInstrument, InstrumentResolutionError>
Trait Implementations§
Source§impl Clone for InstrumentCatalogSnapshot
impl Clone for InstrumentCatalogSnapshot
Auto Trait Implementations§
impl Freeze for InstrumentCatalogSnapshot
impl RefUnwindSafe for InstrumentCatalogSnapshot
impl Send for InstrumentCatalogSnapshot
impl Sync for InstrumentCatalogSnapshot
impl Unpin for InstrumentCatalogSnapshot
impl UnsafeUnpin for InstrumentCatalogSnapshot
impl UnwindSafe for InstrumentCatalogSnapshot
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