pub struct DatabaseDateProperty {
pub id: Option<String>,
pub name: String,
pub description: Option<String>,
pub date: HashMap<(), ()>,
}
Fields§
§id: Option<String>
Property Identifier
name: String
Modify the value of this field when updating the column name of the property.
description: Option<String>
Although it is not explicitly stated in the official documentation, you can add a description to the property by specifying this.
date: HashMap<(), ()>
An empty object ({}
)
Implementations§
Source§impl DatabaseDateProperty
impl DatabaseDateProperty
Sourcepub fn name<T>(self, name: T) -> Self
pub fn name<T>(self, name: T) -> Self
Set the value of the name
field.
Modify the value of this field when updating the column name of the property.
Sourcepub fn description<T>(self, description: T) -> Self
pub fn description<T>(self, description: T) -> Self
Set the value of the description
field.
Although it is not explicitly stated in the official documentation, you can add a description to the property by specifying this.
Trait Implementations§
Source§impl Clone for DatabaseDateProperty
impl Clone for DatabaseDateProperty
Source§fn clone(&self) -> DatabaseDateProperty
fn clone(&self) -> DatabaseDateProperty
Returns a duplicate of the value. Read more
1.0.0 · 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 DatabaseDateProperty
impl Debug for DatabaseDateProperty
Source§impl Default for DatabaseDateProperty
impl Default for DatabaseDateProperty
Source§fn default() -> DatabaseDateProperty
fn default() -> DatabaseDateProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DatabaseDateProperty
impl<'de> Deserialize<'de> for DatabaseDateProperty
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
Source§impl PartialEq for DatabaseDateProperty
impl PartialEq for DatabaseDateProperty
Source§impl Serialize for DatabaseDateProperty
impl Serialize for DatabaseDateProperty
impl Eq for DatabaseDateProperty
impl StructuralPartialEq for DatabaseDateProperty
Auto Trait Implementations§
impl Freeze for DatabaseDateProperty
impl RefUnwindSafe for DatabaseDateProperty
impl Send for DatabaseDateProperty
impl Sync for DatabaseDateProperty
impl Unpin for DatabaseDateProperty
impl UnwindSafe for DatabaseDateProperty
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