pub struct SubjectRef {
pub digest: Option<String>,
pub uri: Option<String>,
pub artifact_id: Option<String>,
}Expand description
A reference to content being attested, approved, or receipted. At least one field should be set.
Fields§
§digest: Option<String>Content hash: “sha256:
uri: Option<String>External URI to the content
artifact_id: Option<String>ID of another Treeship artifact
Trait Implementations§
Source§impl Clone for SubjectRef
impl Clone for SubjectRef
Source§fn clone(&self) -> SubjectRef
fn clone(&self) -> SubjectRef
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 SubjectRef
impl Debug for SubjectRef
Source§impl Default for SubjectRef
impl Default for SubjectRef
Source§fn default() -> SubjectRef
fn default() -> SubjectRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubjectRef
impl<'de> Deserialize<'de> for SubjectRef
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 SubjectRef
impl RefUnwindSafe for SubjectRef
impl Send for SubjectRef
impl Sync for SubjectRef
impl Unpin for SubjectRef
impl UnsafeUnpin for SubjectRef
impl UnwindSafe for SubjectRef
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