#[non_exhaustive]pub struct SemanticChange {Show 17 fields
pub id: String,
pub entity_id: String,
pub change_type: ChangeType,
pub entity_type: String,
pub entity_name: String,
pub entity_line: usize,
pub parent_name: Option<String>,
pub file_path: String,
pub old_entity_name: Option<String>,
pub old_file_path: Option<String>,
pub old_parent_id: Option<String>,
pub before_content: Option<String>,
pub after_content: Option<String>,
pub commit_sha: Option<String>,
pub author: Option<String>,
pub timestamp: Option<String>,
pub structural_change: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§entity_id: String§change_type: ChangeType§entity_type: String§entity_name: String§entity_line: usize§parent_name: Option<String>§file_path: String§old_entity_name: Option<String>§old_file_path: Option<String>§old_parent_id: Option<String>§before_content: Option<String>§after_content: Option<String>§commit_sha: Option<String>§timestamp: Option<String>§structural_change: Option<bool>Whether the AST structure changed (true) or only formatting/comments (false). None when structural hash is unavailable.
Trait Implementations§
Source§impl Clone for SemanticChange
impl Clone for SemanticChange
Source§fn clone(&self) -> SemanticChange
fn clone(&self) -> SemanticChange
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 moreSource§impl Debug for SemanticChange
impl Debug for SemanticChange
Source§impl<'de> Deserialize<'de> for SemanticChange
impl<'de> Deserialize<'de> for SemanticChange
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 SemanticChange
impl RefUnwindSafe for SemanticChange
impl Send for SemanticChange
impl Sync for SemanticChange
impl Unpin for SemanticChange
impl UnsafeUnpin for SemanticChange
impl UnwindSafe for SemanticChange
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