pub struct VdirItem {
pub path: VdirPath,
pub kind: VdirItemKind,
pub contents: Vec<u8>,
}Expand description
A Vdir collection’s item.
Carries the on-disk path, the parsed kind (from the file extension) and the raw file bytes. The bytes stay raw: io-vdir never decodes them, leaving the choice of vCard or iCalendar parser to the caller.
Fields§
§path: VdirPathOn-disk path of the item file.
kind: VdirItemKindKind of the item, derived from the file extension.
contents: Vec<u8>Raw file bytes.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VdirItem
impl<'de> Deserialize<'de> for VdirItem
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 VdirItem
Source§impl Ord for VdirItem
impl Ord for VdirItem
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 PartialOrd for VdirItem
impl PartialOrd for VdirItem
impl StructuralPartialEq for VdirItem
Auto Trait Implementations§
impl Freeze for VdirItem
impl RefUnwindSafe for VdirItem
impl Send for VdirItem
impl Sync for VdirItem
impl Unpin for VdirItem
impl UnsafeUnpin for VdirItem
impl UnwindSafe for VdirItem
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