pub struct VdirStorageBuilder { /* private fields */ }Expand description
Builder for VdirStorage.
Implementations§
Source§impl VdirStorageBuilder
impl VdirStorageBuilder
Sourcepub fn with_extension(self, extension: String) -> Self
pub fn with_extension(self, extension: String) -> Self
Set the file extension for items saved into this vdir.
If not specified, defaults to “ics” for calendars and “vcf” for address books.
Sourcepub fn build(self, kind: ItemKind) -> VdirStorage
pub fn build(self, kind: ItemKind) -> VdirStorage
Build the storage instance.
Auto Trait Implementations§
impl Freeze for VdirStorageBuilder
impl RefUnwindSafe for VdirStorageBuilder
impl Send for VdirStorageBuilder
impl Sync for VdirStorageBuilder
impl Unpin for VdirStorageBuilder
impl UnsafeUnpin for VdirStorageBuilder
impl UnwindSafe for VdirStorageBuilder
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.