pub struct AstPatch {
pub repo: String,
pub commit: String,
pub nodes_add: Vec<Node>,
pub edges_add: Vec<Edge>,
pub nodes_delete: Vec<String>,
pub edges_delete: Vec<String>,
pub timestamp_ms: i64,
}Expand description
AST patch containing changes to apply
Fields§
§repo: StringRepository ID
commit: StringCommit SHA
nodes_add: Vec<Node>Nodes to add
edges_add: Vec<Edge>Edges to add
nodes_delete: Vec<String>Node IDs to delete
edges_delete: Vec<String>Edge IDs to delete
timestamp_ms: i64Timestamp in milliseconds
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AstPatch
impl<'de> Deserialize<'de> for AstPatch
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
Auto Trait Implementations§
impl Freeze for AstPatch
impl RefUnwindSafe for AstPatch
impl Send for AstPatch
impl Sync for AstPatch
impl Unpin for AstPatch
impl UnwindSafe for AstPatch
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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