pub struct RelationSchema {
pub label: String,
pub from: Option<String>,
pub to: Option<String>,
pub properties: Vec<PropertySchema>,
}Expand description
Schema for a single relationship label.
Fields§
§label: String§from: Option<String>§to: Option<String>§properties: Vec<PropertySchema>Implementations§
Trait Implementations§
Source§impl Clone for RelationSchema
impl Clone for RelationSchema
Source§fn clone(&self) -> RelationSchema
fn clone(&self) -> RelationSchema
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 RelationSchema
impl Debug for RelationSchema
Source§impl Default for RelationSchema
impl Default for RelationSchema
Source§fn default() -> RelationSchema
fn default() -> RelationSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RelationSchema
impl<'de> Deserialize<'de> for RelationSchema
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 RelationSchema
impl PartialEq for RelationSchema
Source§fn eq(&self, other: &RelationSchema) -> bool
fn eq(&self, other: &RelationSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RelationSchema
impl Serialize for RelationSchema
impl Eq for RelationSchema
impl StructuralPartialEq for RelationSchema
Auto Trait Implementations§
impl Freeze for RelationSchema
impl RefUnwindSafe for RelationSchema
impl Send for RelationSchema
impl Sync for RelationSchema
impl Unpin for RelationSchema
impl UnsafeUnpin for RelationSchema
impl UnwindSafe for RelationSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.