pub struct CollectionList {
pub version: u32,
pub collections: Vec<Collection>,
}
Expand description
A structure representing the collection.db
file.
Contains a list of collections.
Fields§
§version: u32
§collections: Vec<Collection>
Implementations§
Source§impl CollectionList
impl CollectionList
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<CollectionList, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<CollectionList, Error>
Read a collection list from its raw bytes.
Sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<CollectionList, Error>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<CollectionList, Error>
Read a collection list from a collection.db
file.
Trait Implementations§
Source§impl Clone for CollectionList
impl Clone for CollectionList
Source§fn clone(&self) -> CollectionList
fn clone(&self) -> CollectionList
Returns a duplicate 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 moreSource§impl Debug for CollectionList
impl Debug for CollectionList
Source§impl PartialEq for CollectionList
impl PartialEq for CollectionList
impl StructuralPartialEq for CollectionList
Auto Trait Implementations§
impl Freeze for CollectionList
impl RefUnwindSafe for CollectionList
impl Send for CollectionList
impl Sync for CollectionList
impl Unpin for CollectionList
impl UnwindSafe for CollectionList
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