pub struct Bundle {
pub captured: String,
/* private fields */
}Expand description
What a bundled catalog holds, as update compares it: its snapshot’s day and, for each
motor’s ThrustCurve id, the ids of the data files the snapshot listed for it, indexed or left
out.
Fields§
§captured: StringThe snapshot’s day, YYYY-MM-DD.
Implementations§
Source§impl Bundle
impl Bundle
Sourcepub fn of(catalog: &Catalog) -> Self
pub fn of(catalog: &Catalog) -> Self
What catalog holds. Ids are kept in lower case, as the API writes them.
Sourcepub fn remove_motor(&mut self, motor_id: &str) -> bool
pub fn remove_motor(&mut self, motor_id: &str) -> bool
Takes a motor out, with its files, as if the snapshot hadn’t listed it. Whether it held it.
Sourcepub fn remove_file(&mut self, simfile_id: &str) -> bool
pub fn remove_file(&mut self, simfile_id: &str) -> bool
Takes one data file out, as if the snapshot hadn’t listed it. Whether it held it.
Trait Implementations§
impl Eq for Bundle
impl StructuralPartialEq for Bundle
Auto Trait Implementations§
impl Freeze for Bundle
impl RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl UnsafeUnpin for Bundle
impl UnwindSafe for Bundle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.