Struct vstorage::base::Collection
source · pub struct Collection { /* private fields */ }
Expand description
A collection may, for example, be an address book or a calendar.
The type of items contained is restricted by the underlying implementation. Collections contain
zero or more items (e.g.: an address book contains events). Each item is addressed by its own
Href
.
This type wraps around the href
for a collection on a given storage. Using the same
Collection
instance across different storages is disallowed.
Implementations§
source§impl Collection
impl Collection
sourcepub fn href(&self) -> &Href
pub fn href(&self) -> &Href
The path to this collection inside the storage.
Href should not change over time, so should be associated with an immutable property of the collection (e.g.: a relative URL path, or a directory’s filename).
The exact meaning of this value is storage-specific, but should be remain consistent with a storage.
pub fn into_href(self) -> Href
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.