pub struct SourceIdentity {
pub commit: Option<String>,
pub tree: Option<String>,
pub lockfile_blob: Option<String>,
}Expand description
The source identity a run was executed against.
All three components are optional because different analyzers pin different
things: semgrep is meaningful against a commit/tree, cargo-audit against a
lockfile blob.
Fields§
§commit: Option<String>Hex commit id the analyzer ran against.
tree: Option<String>Hex tree id the analyzer ran against.
lockfile_blob: Option<String>Hex blob id of the lockfile the analyzer resolved dependencies from.
Trait Implementations§
Source§impl Clone for SourceIdentity
impl Clone for SourceIdentity
Source§fn clone(&self) -> SourceIdentity
fn clone(&self) -> SourceIdentity
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 SourceIdentity
impl Debug for SourceIdentity
Source§impl Default for SourceIdentity
impl Default for SourceIdentity
Source§fn default() -> SourceIdentity
fn default() -> SourceIdentity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SourceIdentity
impl<'de> Deserialize<'de> for SourceIdentity
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
impl Eq for SourceIdentity
Source§impl PartialEq for SourceIdentity
impl PartialEq for SourceIdentity
Source§impl Serialize for SourceIdentity
impl Serialize for SourceIdentity
impl StructuralPartialEq for SourceIdentity
Auto Trait Implementations§
impl Freeze for SourceIdentity
impl RefUnwindSafe for SourceIdentity
impl Send for SourceIdentity
impl Sync for SourceIdentity
impl Unpin for SourceIdentity
impl UnsafeUnpin for SourceIdentity
impl UnwindSafe for SourceIdentity
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.