pub struct NotaryServiceRef {
pub id: String,
pub name: String,
pub version: String,
pub attested_digest: Option<String>,
pub attestation_uri: Option<String>,
}Expand description
Identity of the notary service, used for key discovery (spec §8.4).
Fields§
§id: StringDID of the notary.
name: StringHuman-readable notary service name.
version: StringNotary implementation version.
attested_digest: Option<String>Content digest of the attested release this notary reports running
(spec §7.1.9, §15.3). Declared here because parsing is strict: a
field a conformant notary may send must exist in the shape a
conformant verifier parses. #[serde(default)] keeps every envelope
written before this field byte-identical.
attestation_uri: Option<String>Where the k-of-3 attestation for attested_digest may be fetched
(spec §15.3). Carrying it proves nothing on its own — an attestation
attests what was PUBLISHED, never what is RUNNING (§15.7).
Trait Implementations§
Source§impl Clone for NotaryServiceRef
impl Clone for NotaryServiceRef
Source§impl Debug for NotaryServiceRef
impl Debug for NotaryServiceRef
Source§impl<'de> Deserialize<'de> for NotaryServiceRef
impl<'de> Deserialize<'de> for NotaryServiceRef
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 NotaryServiceRef
Source§impl PartialEq for NotaryServiceRef
impl PartialEq for NotaryServiceRef
Source§impl Serialize for NotaryServiceRef
impl Serialize for NotaryServiceRef
impl StructuralPartialEq for NotaryServiceRef
Auto Trait Implementations§
impl Freeze for NotaryServiceRef
impl RefUnwindSafe for NotaryServiceRef
impl Send for NotaryServiceRef
impl Sync for NotaryServiceRef
impl Unpin for NotaryServiceRef
impl UnsafeUnpin for NotaryServiceRef
impl UnwindSafe for NotaryServiceRef
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