pub struct VdirCollection {
pub path: VdirPath,
pub display_name: Option<String>,
pub description: Option<String>,
pub color: Option<String>,
}Expand description
A Vdir collection.
Represents a directory that contains only items (vCard or iCalendar files). A collection may also carry the optional metadata files defined by the vdir specification.
Fields§
§path: VdirPathOn-disk directory of the collection.
display_name: Option<String>Display name of the collection, when the displayname file
exists and is non-empty.
description: Option<String>Description of the collection, when the description file
exists and is non-empty.
color: Option<String>ASCII #RRGGBB hex color of the collection, when the color
file exists and is non-empty.
Implementations§
Trait Implementations§
Source§impl AsRef<VdirPath> for VdirCollection
impl AsRef<VdirPath> for VdirCollection
Source§impl Clone for VdirCollection
impl Clone for VdirCollection
Source§fn clone(&self) -> VdirCollection
fn clone(&self) -> VdirCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VdirCollection
impl Debug for VdirCollection
Source§impl Default for VdirCollection
impl Default for VdirCollection
Source§fn default() -> VdirCollection
fn default() -> VdirCollection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VdirCollection
impl<'de> Deserialize<'de> for VdirCollection
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 VdirCollection
Source§impl From<VdirPath> for VdirCollection
impl From<VdirPath> for VdirCollection
Source§impl Hash for VdirCollection
impl Hash for VdirCollection
Source§impl Ord for VdirCollection
impl Ord for VdirCollection
Source§fn cmp(&self, other: &VdirCollection) -> Ordering
fn cmp(&self, other: &VdirCollection) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VdirCollection
impl PartialEq for VdirCollection
Source§impl PartialOrd for VdirCollection
impl PartialOrd for VdirCollection
Source§impl Serialize for VdirCollection
impl Serialize for VdirCollection
impl StructuralPartialEq for VdirCollection
Auto Trait Implementations§
impl Freeze for VdirCollection
impl RefUnwindSafe for VdirCollection
impl Send for VdirCollection
impl Sync for VdirCollection
impl Unpin for VdirCollection
impl UnsafeUnpin for VdirCollection
impl UnwindSafe for VdirCollection
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