pub struct GraphUpdate {
pub update_type: String,
pub node_indices: Vec<usize>,
pub features: Option<Array1<f64>>,
pub edge_weight: Option<f64>,
pub timestamp: f64,
}Expand description
Represents a graph update operation
Fields§
§update_type: StringType of update: “add_node”, “remove_node”, “update_edge”, “update_features”
node_indices: Vec<usize>Node indices involved
features: Option<Array1<f64>>New feature values (for feature updates)
edge_weight: Option<f64>Edge weight (for edge updates)
timestamp: f64Timestamp of update
Trait Implementations§
Source§impl Clone for GraphUpdate
impl Clone for GraphUpdate
Source§fn clone(&self) -> GraphUpdate
fn clone(&self) -> GraphUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GraphUpdate
impl RefUnwindSafe for GraphUpdate
impl Send for GraphUpdate
impl Sync for GraphUpdate
impl Unpin for GraphUpdate
impl UnwindSafe for GraphUpdate
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more