[−][src]Struct etebase::ItemMetadata
Metadata of the item
Implementations
impl ItemMetadata
[src]
pub fn new() -> Self
[src]
Create a new metadata object
pub fn set_item_type(&mut self, type_: Option<&str>) -> &mut Self
[src]
pub fn item_type(&self) -> Option<&str>
[src]
The item type
pub fn set_name(&mut self, name: Option<&str>) -> &mut Self
[src]
Set the item name
For example, you can set it to "Secret Note" or "todo.txt"
Arguments:
name
- the name to be set
pub fn name(&self) -> Option<&str>
[src]
The item name
pub fn set_mtime(&mut self, mtime: Option<i64>) -> &mut Self
[src]
Set the modification time of the item
Arguments:
mtime
- the modification time in milliseconds since epoch
pub fn mtime(&self) -> Option<i64>
[src]
Modification time of the item
pub fn set_description(&mut self, description: Option<&str>) -> &mut Self
[src]
pub fn description(&self) -> Option<&str>
[src]
The item description
pub fn set_color(&mut self, color: Option<&str>) -> &mut Self
[src]
pub fn color(&self) -> Option<&str>
[src]
The item color in #RRGGBB
or #RRGGBBAA
format
Trait Implementations
impl Clone for ItemMetadata
[src]
pub fn clone(&self) -> ItemMetadata
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ItemMetadata
[src]
impl<'de> Deserialize<'de> for ItemMetadata
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl MsgPackSerilization for ItemMetadata
[src]
type Output = ItemMetadata
The type of the struct implementing this trait
pub fn to_msgpack(&self) -> Result<Vec<u8>>
[src]
pub fn from_msgpack(data: &[u8]) -> Result<Self::Output>
[src]
impl PartialEq<ItemMetadata> for ItemMetadata
[src]
pub fn eq(&self, other: &ItemMetadata) -> bool
[src]
pub fn ne(&self, other: &ItemMetadata) -> bool
[src]
impl Serialize for ItemMetadata
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for ItemMetadata
[src]
Auto Trait Implementations
impl RefUnwindSafe for ItemMetadata
[src]
impl Send for ItemMetadata
[src]
impl Sync for ItemMetadata
[src]
impl Unpin for ItemMetadata
[src]
impl UnwindSafe for ItemMetadata
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,