pub struct PluginSignature {
pub algorithm: SignatureAlgorithm,
pub key_id: String,
pub signature: String,
pub signed_content_hash: String,
}Expand description
Plugin signature metadata
Fields§
§algorithm: SignatureAlgorithmSignature algorithm used
key_id: StringKey ID that was used to sign
signature: StringHex-encoded signature bytes
signed_content_hash: StringHex-encoded hash of signed content (for verification)
Implementations§
Source§impl PluginSignature
impl PluginSignature
Sourcepub fn new(
algorithm: SignatureAlgorithm,
key_id: String,
signature: Vec<u8>,
content_hash: Vec<u8>,
) -> Self
pub fn new( algorithm: SignatureAlgorithm, key_id: String, signature: Vec<u8>, content_hash: Vec<u8>, ) -> Self
Create a new signature
Sourcepub fn signature_bytes(&self) -> Result<Vec<u8>, FromHexError>
pub fn signature_bytes(&self) -> Result<Vec<u8>, FromHexError>
Get signature bytes
Sourcepub fn content_hash_bytes(&self) -> Result<Vec<u8>, FromHexError>
pub fn content_hash_bytes(&self) -> Result<Vec<u8>, FromHexError>
Get content hash bytes
Trait Implementations§
Source§impl Clone for PluginSignature
impl Clone for PluginSignature
Source§fn clone(&self) -> PluginSignature
fn clone(&self) -> PluginSignature
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 PluginSignature
impl Debug for PluginSignature
Source§impl<'de> Deserialize<'de> for PluginSignature
impl<'de> Deserialize<'de> for PluginSignature
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 PluginSignature
impl RefUnwindSafe for PluginSignature
impl Send for PluginSignature
impl Sync for PluginSignature
impl Unpin for PluginSignature
impl UnwindSafe for PluginSignature
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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