#[non_exhaustive]pub struct RelationMeta {
pub created_at: Option<DateTime<Utc>>,
pub defined_by: Option<String>,
pub modified_at: Option<DateTime<Utc>>,
pub source: Option<String>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Relation metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.created_at: Option<DateTime<Utc>>
Relation creation time.
defined_by: Option<String>
Relation defined by.
modified_at: Option<DateTime<Utc>>
Relation modification time.
source: Option<String>
Relation source.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl RelationMeta
impl RelationMeta
pub fn new() -> RelationMeta
pub fn created_at(self, value: DateTime<Utc>) -> Self
pub fn defined_by(self, value: String) -> Self
pub fn modified_at(self, value: DateTime<Utc>) -> Self
pub fn source(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for RelationMeta
impl Clone for RelationMeta
Source§fn clone(&self) -> RelationMeta
fn clone(&self) -> RelationMeta
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 RelationMeta
impl Debug for RelationMeta
Source§impl Default for RelationMeta
impl Default for RelationMeta
Source§impl<'de> Deserialize<'de> for RelationMeta
impl<'de> Deserialize<'de> for RelationMeta
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 RelationMeta
impl PartialEq for RelationMeta
Source§impl Serialize for RelationMeta
impl Serialize for RelationMeta
impl StructuralPartialEq for RelationMeta
Auto Trait Implementations§
impl Freeze for RelationMeta
impl RefUnwindSafe for RelationMeta
impl Send for RelationMeta
impl Sync for RelationMeta
impl Unpin for RelationMeta
impl UnwindSafe for RelationMeta
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