pub struct Snapshot { /* private fields */ }Expand description
Point-in-time boarding inventory evidence used to make confirm/waitlist/deny decisions.
Implementations§
Source§impl Snapshot
impl Snapshot
Sourcepub fn new(segments: Vec<NightlySegmentSnapshot>) -> Result<Self, SnapshotError>
pub fn new(segments: Vec<NightlySegmentSnapshot>) -> Result<Self, SnapshotError>
Creates a capacity snapshot from one or more nightly accommodation segments.
Sourcepub fn segments(&self) -> &[NightlySegmentSnapshot]
pub fn segments(&self) -> &[NightlySegmentSnapshot]
Returns the source-derived accommodation segments considered by capacity policy.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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