pub struct Snapshot {
pub version: i32,
pub job: Box<SnapshotJob>,
pub sha: String,
pub ref: String,
pub detector: Box<SnapshotDetector>,
pub metadata: Option<HashMap<String, MetadataValue>>,
pub manifests: Option<HashMap<String, Manifest>>,
pub scanned: String,
}
Expand description
Snapshot : Create a new snapshot of a repository’s dependencies.
Fields§
§version: i32
The version of the repository snapshot submission.
job: Box<SnapshotJob>
§sha: String
The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.
ref: String
The repository branch that triggered this snapshot.
detector: Box<SnapshotDetector>
§metadata: Option<HashMap<String, MetadataValue>>
User-defined metadata to store domain-specific information limited to 8 keys with scalar values.
manifests: Option<HashMap<String, Manifest>>
A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.
scanned: String
The time at which the snapshot was scanned.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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 StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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