pub struct FrankenKeyPackage {
pub payload: FrankenKeyPackageTbs,
pub signature: VLBytes,
}Available on (32-bit or 64-bit) and (crate features
test-utils) only.Fields§
§payload: FrankenKeyPackageTbs§signature: VLBytesImplementations§
Source§impl FrankenKeyPackage
impl FrankenKeyPackage
pub fn resign(&mut self, signer: &impl Signer)
pub fn resign_only_key_package(&mut self, signer: &impl Signer)
Trait Implementations§
Source§impl Clone for FrankenKeyPackage
impl Clone for FrankenKeyPackage
Source§fn clone(&self) -> FrankenKeyPackage
fn clone(&self) -> FrankenKeyPackage
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 FrankenKeyPackage
impl Debug for FrankenKeyPackage
Source§impl Deref for FrankenKeyPackage
impl Deref for FrankenKeyPackage
Source§impl DerefMut for FrankenKeyPackage
impl DerefMut for FrankenKeyPackage
Source§impl Deserialize for FrankenKeyPackage
impl Deserialize for FrankenKeyPackage
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
Available on crate feature
std only.This function deserializes the
bytes from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl DeserializeBytes for FrankenKeyPackage
impl DeserializeBytes for FrankenKeyPackage
Source§impl From<FrankenKeyPackage> for KeyPackage
impl From<FrankenKeyPackage> for KeyPackage
Source§fn from(fkp: FrankenKeyPackage) -> Self
fn from(fkp: FrankenKeyPackage) -> Self
Converts to this type from the input type.
Source§impl From<FrankenKeyPackage> for KeyPackageIn
impl From<FrankenKeyPackage> for KeyPackageIn
Source§fn from(fkp: FrankenKeyPackage) -> Self
fn from(fkp: FrankenKeyPackage) -> Self
Converts to this type from the input type.
Source§impl From<KeyPackage> for FrankenKeyPackage
impl From<KeyPackage> for FrankenKeyPackage
Source§fn from(kp: KeyPackage) -> Self
fn from(kp: KeyPackage) -> Self
Converts to this type from the input type.
Source§impl From<KeyPackageBundle> for FrankenKeyPackage
impl From<KeyPackageBundle> for FrankenKeyPackage
Source§fn from(kp: KeyPackageBundle) -> Self
fn from(kp: KeyPackageBundle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FrankenKeyPackage
impl PartialEq for FrankenKeyPackage
Source§impl Serialize for &FrankenKeyPackage
impl Serialize for &FrankenKeyPackage
Source§impl Serialize for FrankenKeyPackage
impl Serialize for FrankenKeyPackage
Source§impl SignedStruct<FrankenKeyPackageTbs> for FrankenKeyPackage
impl SignedStruct<FrankenKeyPackageTbs> for FrankenKeyPackage
Source§fn from_payload(
payload: FrankenKeyPackageTbs,
signature: Signature,
_serialized_payload: Vec<u8>,
) -> Self
fn from_payload( payload: FrankenKeyPackageTbs, signature: Signature, _serialized_payload: Vec<u8>, ) -> Self
Build a signed struct version from the payload struct.
Source§impl Size for &FrankenKeyPackage
impl Size for &FrankenKeyPackage
fn tls_serialized_len(&self) -> usize
Source§impl Size for FrankenKeyPackage
impl Size for FrankenKeyPackage
fn tls_serialized_len(&self) -> usize
impl Eq for FrankenKeyPackage
impl StructuralPartialEq for FrankenKeyPackage
Auto Trait Implementations§
impl Freeze for FrankenKeyPackage
impl RefUnwindSafe for FrankenKeyPackage
impl Send for FrankenKeyPackage
impl Sync for FrankenKeyPackage
impl Unpin for FrankenKeyPackage
impl UnwindSafe for FrankenKeyPackage
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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