pub struct GraphMutationPlan {
pub planned_root: Option<GraphNode>,
pub items: Vec<GraphMutationPlanItem>,
pub batches: Vec<GraphMutationBatch>,
}Fields§
§planned_root: Option<GraphNode>§items: Vec<GraphMutationPlanItem>§batches: Vec<GraphMutationBatch>Implementations§
Source§impl GraphMutationPlan
impl GraphMutationPlan
pub fn push( &mut self, entity: impl Into<String>, kind: GraphMutationKind, values: Record, update_fields: Vec<String>, )
pub fn rebuild_batches(&mut self)
pub fn grouped_counts(&self) -> BTreeMap<(String, GraphMutationKind), usize>
pub fn batch_count(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for GraphMutationPlan
impl Clone for GraphMutationPlan
Source§fn clone(&self) -> GraphMutationPlan
fn clone(&self) -> GraphMutationPlan
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 GraphMutationPlan
impl Debug for GraphMutationPlan
Source§impl Default for GraphMutationPlan
impl Default for GraphMutationPlan
Source§fn default() -> GraphMutationPlan
fn default() -> GraphMutationPlan
Returns the “default value” for a type. Read more
Source§impl PartialEq for GraphMutationPlan
impl PartialEq for GraphMutationPlan
Source§fn eq(&self, other: &GraphMutationPlan) -> bool
fn eq(&self, other: &GraphMutationPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GraphMutationPlan
Auto Trait Implementations§
impl Freeze for GraphMutationPlan
impl RefUnwindSafe for GraphMutationPlan
impl Send for GraphMutationPlan
impl Sync for GraphMutationPlan
impl Unpin for GraphMutationPlan
impl UnsafeUnpin for GraphMutationPlan
impl UnwindSafe for GraphMutationPlan
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