pub struct SnapshotJob {
pub id: String,
pub correlator: String,
pub html_url: Option<String>,
}
Fields§
§id: String
The external ID of the job.
correlator: String
Correlator provides a key that is used to group snapshots submitted over time. Only the "latest" submitted snapshot for a given combination of job.correlator
and detector.name
will be considered when calculating a repository’s current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given "wave" of CI workflow you run. If you’re using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you’re using a build matrix, then you’ll also need to add additional key(s) to distinguish between each submission inside a matrix variation.
html_url: Option<String>
The url for the job.
Implementations§
Source§impl SnapshotJob
impl SnapshotJob
pub fn new(id: String, correlator: String) -> SnapshotJob
Trait Implementations§
Source§impl Clone for SnapshotJob
impl Clone for SnapshotJob
Source§fn clone(&self) -> SnapshotJob
fn clone(&self) -> SnapshotJob
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 SnapshotJob
impl Debug for SnapshotJob
Source§impl Default for SnapshotJob
impl Default for SnapshotJob
Source§fn default() -> SnapshotJob
fn default() -> SnapshotJob
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnapshotJob
impl<'de> Deserialize<'de> for SnapshotJob
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
Source§impl PartialEq for SnapshotJob
impl PartialEq for SnapshotJob
Source§impl Serialize for SnapshotJob
impl Serialize for SnapshotJob
impl StructuralPartialEq for SnapshotJob
Auto Trait Implementations§
impl Freeze for SnapshotJob
impl RefUnwindSafe for SnapshotJob
impl Send for SnapshotJob
impl Sync for SnapshotJob
impl Unpin for SnapshotJob
impl UnwindSafe for SnapshotJob
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