pub struct NodeFieldSchemaSet {
pub node_kind: NodeKindKey,
pub fields: Vec<FieldSchema>,
}Expand description
Field schemas attached to one node kind.
Fields§
§node_kind: NodeKindKey§fields: Vec<FieldSchema>Implementations§
Source§impl NodeFieldSchemaSet
impl NodeFieldSchemaSet
pub fn new(node_kind: impl Into<NodeKindKey>) -> Self
pub fn with_field(self, field: FieldSchema) -> Self
Trait Implementations§
Source§impl Clone for NodeFieldSchemaSet
impl Clone for NodeFieldSchemaSet
Source§fn clone(&self) -> NodeFieldSchemaSet
fn clone(&self) -> NodeFieldSchemaSet
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 NodeFieldSchemaSet
impl Debug for NodeFieldSchemaSet
Source§impl<'de> Deserialize<'de> for NodeFieldSchemaSet
impl<'de> Deserialize<'de> for NodeFieldSchemaSet
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 NodeFieldSchemaSet
impl PartialEq for NodeFieldSchemaSet
Source§fn eq(&self, other: &NodeFieldSchemaSet) -> bool
fn eq(&self, other: &NodeFieldSchemaSet) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeFieldSchemaSet
impl Serialize for NodeFieldSchemaSet
impl StructuralPartialEq for NodeFieldSchemaSet
Auto Trait Implementations§
impl Freeze for NodeFieldSchemaSet
impl RefUnwindSafe for NodeFieldSchemaSet
impl Send for NodeFieldSchemaSet
impl Sync for NodeFieldSchemaSet
impl Unpin for NodeFieldSchemaSet
impl UnsafeUnpin for NodeFieldSchemaSet
impl UnwindSafe for NodeFieldSchemaSet
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