pub struct RelationTypeDefinition {
pub id: RelationTypeId,
pub name: String,
}Expand description
Fields§
§id: RelationTypeIdStable relation type identifier.
name: StringHuman-readable unique relation type name.
Trait Implementations§
Source§impl Clone for RelationTypeDefinition
impl Clone for RelationTypeDefinition
Source§fn clone(&self) -> RelationTypeDefinition
fn clone(&self) -> RelationTypeDefinition
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 RelationTypeDefinition
impl Debug for RelationTypeDefinition
Source§impl<'de> Deserialize<'de> for RelationTypeDefinition
impl<'de> Deserialize<'de> for RelationTypeDefinition
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 RelationTypeDefinition
Source§impl PartialEq for RelationTypeDefinition
impl PartialEq for RelationTypeDefinition
Source§fn eq(&self, other: &RelationTypeDefinition) -> bool
fn eq(&self, other: &RelationTypeDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RelationTypeDefinition
impl Serialize for RelationTypeDefinition
impl StructuralPartialEq for RelationTypeDefinition
Auto Trait Implementations§
impl Freeze for RelationTypeDefinition
impl RefUnwindSafe for RelationTypeDefinition
impl Send for RelationTypeDefinition
impl Sync for RelationTypeDefinition
impl Unpin for RelationTypeDefinition
impl UnsafeUnpin for RelationTypeDefinition
impl UnwindSafe for RelationTypeDefinition
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