pub struct NodeGraphPatch {
pub transaction: GraphTransaction,
}Expand description
Full-fidelity committed graph patch.
This is the primary commit payload for controlled integrations. It preserves every
GraphOp, including ports, groups, sticky notes, imports, symbols, and other resources.
Fields§
§transaction: GraphTransactionReversible transaction committed by the store.
Implementations§
Source§impl NodeGraphPatch
impl NodeGraphPatch
pub fn new(transaction: GraphTransaction) -> Self
pub fn transaction(&self) -> &GraphTransaction
pub fn into_transaction(self) -> GraphTransaction
pub fn ops(&self) -> &[GraphOp]
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for NodeGraphPatch
impl Clone for NodeGraphPatch
Source§fn clone(&self) -> NodeGraphPatch
fn clone(&self) -> NodeGraphPatch
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 NodeGraphPatch
impl Debug for NodeGraphPatch
Source§impl Default for NodeGraphPatch
impl Default for NodeGraphPatch
Source§fn default() -> NodeGraphPatch
fn default() -> NodeGraphPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeGraphPatch
impl<'de> Deserialize<'de> for NodeGraphPatch
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 From<GraphTransaction> for NodeGraphPatch
impl From<GraphTransaction> for NodeGraphPatch
Source§fn from(transaction: GraphTransaction) -> Self
fn from(transaction: GraphTransaction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NodeGraphPatch
impl RefUnwindSafe for NodeGraphPatch
impl Send for NodeGraphPatch
impl Sync for NodeGraphPatch
impl Unpin for NodeGraphPatch
impl UnsafeUnpin for NodeGraphPatch
impl UnwindSafe for NodeGraphPatch
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