pub struct GraphNode {
pub entity: String,
pub values: Record,
pub relations: BTreeMap<String, Vec<GraphNode>>,
pub operation: GraphOperation,
}Fields§
§entity: String§values: Record§relations: BTreeMap<String, Vec<GraphNode>>§operation: GraphOperationImplementations§
Source§impl GraphNode
impl GraphNode
pub fn new(entity: impl Into<String>) -> Self
pub fn operation(self, operation: GraphOperation) -> Self
pub fn reference(self) -> Self
pub fn remove(self) -> Self
pub fn value(self, field: impl Into<String>, value: impl Into<Value>) -> Self
pub fn relation(self, name: impl Into<String>, node: GraphNode) -> Self
pub fn relations( self, name: impl Into<String>, nodes: impl IntoIterator<Item = GraphNode>, ) -> Self
pub fn id(&self) -> Option<&Value>
Trait Implementations§
impl StructuralPartialEq for GraphNode
Auto Trait Implementations§
impl Freeze for GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl UnwindSafe for GraphNode
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