Type Alias sequoia_openpgp::cert::amalgamation::key::SubordinateKeyAmalgamation
source · pub type SubordinateKeyAmalgamation<'a, P> = KeyAmalgamation<'a, P, SubordinateRole, ()>;
Expand description
A subordinate key amalgamation.
A specialized version of KeyAmalgamation
.
Aliased Type§
struct SubordinateKeyAmalgamation<'a, P> { /* private fields */ }
Implementations§
source§impl<'a, P> SubordinateKeyAmalgamation<'a, P>where
P: KeyParts,
impl<'a, P> SubordinateKeyAmalgamation<'a, P>where
P: KeyParts,
sourcepub fn parts_into_public(self) -> SubordinateKeyAmalgamation<'a, PublicParts>
pub fn parts_into_public(self) -> SubordinateKeyAmalgamation<'a, PublicParts>
Changes the key’s parts tag to PublicParts
.
sourcepub fn parts_as_public(
&'a self,
) -> &'a SubordinateKeyAmalgamation<'a, PublicParts>
pub fn parts_as_public( &'a self, ) -> &'a SubordinateKeyAmalgamation<'a, PublicParts>
Changes the key’s parts tag to PublicParts
.
sourcepub fn parts_as_public_mut(
&'a mut self,
) -> &'a mut SubordinateKeyAmalgamation<'a, PublicParts>
pub fn parts_as_public_mut( &'a mut self, ) -> &'a mut SubordinateKeyAmalgamation<'a, PublicParts>
Changes the key’s parts tag to PublicParts
.
sourcepub fn parts_into_secret(
self,
) -> Result<SubordinateKeyAmalgamation<'a, SecretParts>>
pub fn parts_into_secret( self, ) -> Result<SubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key’s parts tag to SecretParts
.
sourcepub fn parts_as_secret(
&'a self,
) -> Result<&'a SubordinateKeyAmalgamation<'a, SecretParts>>
pub fn parts_as_secret( &'a self, ) -> Result<&'a SubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key’s parts tag to SecretParts
.
sourcepub fn parts_as_secret_mut(
&'a mut self,
) -> Result<&'a mut SubordinateKeyAmalgamation<'a, SecretParts>>
pub fn parts_as_secret_mut( &'a mut self, ) -> Result<&'a mut SubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key’s parts tag to SecretParts
.
sourcepub fn parts_into_unspecified(
self,
) -> SubordinateKeyAmalgamation<'a, UnspecifiedParts>
pub fn parts_into_unspecified( self, ) -> SubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key’s parts tag to UnspecifiedParts
.
sourcepub fn parts_as_unspecified(
&'a self,
) -> &SubordinateKeyAmalgamation<'a, UnspecifiedParts>
pub fn parts_as_unspecified( &'a self, ) -> &SubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key’s parts tag to UnspecifiedParts
.
sourcepub fn parts_as_unspecified_mut(
&'a mut self,
) -> &mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>
pub fn parts_as_unspecified_mut( &'a mut self, ) -> &mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key’s parts tag to UnspecifiedParts
.
Trait Implementations§
source§impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
source§fn from(p: &'a SubordinateKeyAmalgamation<'a, PublicParts>) -> Self
fn from(p: &'a SubordinateKeyAmalgamation<'a, PublicParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
source§fn from(p: &'a SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: &'a SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
source§fn from(p: &'a SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: &'a SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
source§fn from(p: &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
fn from(p: &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<&'a mut KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>
source§fn from(p: &'a mut SubordinateKeyAmalgamation<'a, PublicParts>) -> Self
fn from(p: &'a mut SubordinateKeyAmalgamation<'a, PublicParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, PublicParts>
impl<'a> From<&'a mut KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, PublicParts>
source§fn from(p: &'a mut SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: &'a mut SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<&'a mut KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>
source§fn from(p: &'a mut SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: &'a mut SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, PublicParts>
impl<'a> From<&'a mut KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, PublicParts>
source§fn from(p: &'a mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
fn from(p: &'a mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
source§fn from(p: SubordinateKeyAmalgamation<'a, PublicParts>) -> Self
fn from(p: SubordinateKeyAmalgamation<'a, PublicParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
source§fn from(p: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
source§fn from(p: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
source§impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
source§fn from(p: SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
fn from(p: SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
Converts to this type from the input type.
source§impl<'a, P> PrimaryKey<'a, P, SubordinateRole> for SubordinateKeyAmalgamation<'a, P>where
P: 'a + KeyParts,
impl<'a, P> PrimaryKey<'a, P, SubordinateRole> for SubordinateKeyAmalgamation<'a, P>where
P: 'a + KeyParts,
source§impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
source§fn try_from(p: &'a SubordinateKeyAmalgamation<'a, PublicParts>) -> Result<Self>
fn try_from(p: &'a SubordinateKeyAmalgamation<'a, PublicParts>) -> Result<Self>
Performs the conversion.
source§impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
source§fn try_from(
p: &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>,
) -> Result<Self>
fn try_from( p: &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>, ) -> Result<Self>
Performs the conversion.
source§impl<'a> TryFrom<&'a mut KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<&'a mut KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, SecretParts>
source§fn try_from(
p: &'a mut SubordinateKeyAmalgamation<'a, PublicParts>,
) -> Result<Self>
fn try_from( p: &'a mut SubordinateKeyAmalgamation<'a, PublicParts>, ) -> Result<Self>
Performs the conversion.
source§impl<'a> TryFrom<&'a mut KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<&'a mut KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a mut SubordinateKeyAmalgamation<'a, SecretParts>
source§fn try_from(
p: &'a mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>,
) -> Result<Self>
fn try_from( p: &'a mut SubordinateKeyAmalgamation<'a, UnspecifiedParts>, ) -> Result<Self>
Performs the conversion.
source§impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for SubordinateKeyAmalgamation<'a, P2>
impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for SubordinateKeyAmalgamation<'a, P2>
source§impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
source§fn try_from(p: SubordinateKeyAmalgamation<'a, PublicParts>) -> Result<Self>
fn try_from(p: SubordinateKeyAmalgamation<'a, PublicParts>) -> Result<Self>
Performs the conversion.
source§impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
source§fn try_from(p: SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
fn try_from(p: SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
Performs the conversion.
source§impl<'a, P> ValidateAmalgamation<'a, Key<P, SubordinateRole>> for SubordinateKeyAmalgamation<'a, P>where
P: 'a + KeyParts,
impl<'a, P> ValidateAmalgamation<'a, Key<P, SubordinateRole>> for SubordinateKeyAmalgamation<'a, P>where
P: 'a + KeyParts,
§type V = ValidKeyAmalgamation<'a, P, SubordinateRole, ()>
type V = ValidKeyAmalgamation<'a, P, SubordinateRole, ()>
The type returned by
with_policy
. Read more