pub struct BundleSignature {
pub algorithm: String,
pub public_key: String,
pub signature: String,
pub signed_at: Option<String>,
}Expand description
Cryptographic signature of the manifest
The signature is computed over the SHA-256 hash of the canonical manifest bytes (RFC 8785 JCS) with the signature field excluded.
Fields§
§algorithm: StringSignature algorithm identifier. MUST be “ed25519” in v0.
public_key: StringEd25519 public key encoded as base64url (no padding).
signature: StringSignature over canonical manifest encoded as base64url (no padding).
signed_at: Option<String>Optional ISO 8601 timestamp of signing.
Trait Implementations§
Source§impl Clone for BundleSignature
impl Clone for BundleSignature
Source§fn clone(&self) -> BundleSignature
fn clone(&self) -> BundleSignature
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 BundleSignature
impl Debug for BundleSignature
Source§impl<'de> Deserialize<'de> for BundleSignature
impl<'de> Deserialize<'de> for BundleSignature
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 BundleSignature
impl RefUnwindSafe for BundleSignature
impl Send for BundleSignature
impl Sync for BundleSignature
impl Unpin for BundleSignature
impl UnsafeUnpin for BundleSignature
impl UnwindSafe for BundleSignature
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
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>
Converts
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>
Converts
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