pub struct InToto {
pub expected_command: Option<Vec<String>>,
pub expected_materials: Option<Vec<ArtifactRule>>,
pub expected_products: Option<Vec<ArtifactRule>>,
pub signing_keys: Option<Vec<SigningKey>>,
pub step_name: Option<String>,
pub threshold: Option<i64>,
}
Expand description
This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note.
This type is not used in any activity, and only used as part of another schema.
Fields§
§expected_command: Option<Vec<String>>
This field contains the expected command used to perform the step.
expected_materials: Option<Vec<ArtifactRule>>
The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
expected_products: Option<Vec<ArtifactRule>>
no description provided
signing_keys: Option<Vec<SigningKey>>
This field contains the public keys that can be used to verify the signatures on the step metadata.
step_name: Option<String>
This field identifies the name of the step in the supply chain.
threshold: Option<i64>
This field contains a value that indicates the minimum number of keys that need to be used to sign the step’s in-toto link.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InToto
impl<'de> Deserialize<'de> for InToto
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>,
impl Part for InToto
Auto Trait Implementations§
impl Freeze for InToto
impl RefUnwindSafe for InToto
impl Send for InToto
impl Sync for InToto
impl Unpin for InToto
impl UnwindSafe for InToto
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
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>
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>
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