pub struct PendingAttestation<'a> {
pub uri: Cow<'a, str>,
}Fields§
§uri: Cow<'a, str>Implementations§
Source§impl PendingAttestation<'_>
impl PendingAttestation<'_>
Sourcepub const MAX_URI_LEN: usize = 1000
pub const MAX_URI_LEN: usize = 1000
Maximum length of a URI in a “pending” attestation.
pub fn validate_uri(uri: &str) -> bool
Trait Implementations§
Source§impl<'a> Attestation<'a> for PendingAttestation<'a>
impl<'a> Attestation<'a> for PendingAttestation<'a>
const TAG: AttestationTag = PENDING_TAG
fn from_raw_data(data: &'a [u8]) -> Result<Self, DecodeError>
fn to_raw_data_in<A: Allocator>( &self, alloc: A, ) -> Result<Vec<u8, A>, EncodeError>
fn from_raw<A: Allocator>( raw: &'a RawAttestation<A>, ) -> Result<Self, DecodeError>
fn to_raw(&self) -> Result<RawAttestation, EncodeError>
fn to_raw_in<A: Allocator>( &self, alloc: A, ) -> Result<RawAttestation<A>, EncodeError>
Source§impl<'a> Clone for PendingAttestation<'a>
impl<'a> Clone for PendingAttestation<'a>
Source§fn clone(&self) -> PendingAttestation<'a>
fn clone(&self) -> PendingAttestation<'a>
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<'a> Debug for PendingAttestation<'a>
impl<'a> Debug for PendingAttestation<'a>
Source§impl Display for PendingAttestation<'_>
impl Display for PendingAttestation<'_>
Source§impl<'a> PartialEq for PendingAttestation<'a>
impl<'a> PartialEq for PendingAttestation<'a>
impl<'a> Eq for PendingAttestation<'a>
impl<'a> StructuralPartialEq for PendingAttestation<'a>
Auto Trait Implementations§
impl<'a> Freeze for PendingAttestation<'a>
impl<'a> RefUnwindSafe for PendingAttestation<'a>
impl<'a> Send for PendingAttestation<'a>
impl<'a> Sync for PendingAttestation<'a>
impl<'a> Unpin for PendingAttestation<'a>
impl<'a> UnsafeUnpin for PendingAttestation<'a>
impl<'a> UnwindSafe for PendingAttestation<'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