#[non_exhaustive]pub struct VerifyRequest<'a> {
pub content: SignedContent<'a>,
pub signature: &'a [u8],
pub media_type: Option<&'a str>,
}Expand description
One verification request.
Experimental: may change in a 0.x minor release.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content: SignedContent<'a>What was signed.
signature: &'a [u8]The detached signature bytes, as downloaded.
media_type: Option<&'a str>The mediaType of the artifact format the signature belongs to (it
selects the artifact format, not the signature’s own type).
Implementations§
Source§impl<'a> VerifyRequest<'a>
impl<'a> VerifyRequest<'a>
Sourcepub fn new(content: SignedContent<'a>, signature: &'a [u8]) -> Self
pub fn new(content: SignedContent<'a>, signature: &'a [u8]) -> Self
A request for signature over content, without a media type.
Sourcepub fn with_media_type(self, media_type: &'a str) -> Self
pub fn with_media_type(self, media_type: &'a str) -> Self
Set the artifact format’s media type.
Trait Implementations§
Source§impl<'a> Clone for VerifyRequest<'a>
impl<'a> Clone for VerifyRequest<'a>
impl<'a> Copy for VerifyRequest<'a>
Auto Trait Implementations§
impl<'a> Forget for VerifyRequest<'a>
impl<'a> Freeze for VerifyRequest<'a>
impl<'a> Move for VerifyRequest<'a>
impl<'a> RefUnwindSafe for VerifyRequest<'a>
impl<'a> Send for VerifyRequest<'a>
impl<'a> Sync for VerifyRequest<'a>
impl<'a> Unpin for VerifyRequest<'a>
impl<'a> UnsafeUnpin for VerifyRequest<'a>
impl<'a> UnwindSafe for VerifyRequest<'a>
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