[−][src]Type Definition sequoia_openpgp::cert::amalgamation::key::ValidSubordinateKeyAmalgamation
type ValidSubordinateKeyAmalgamation<'a, P> = ValidKeyAmalgamation<'a, P, SubordinateRole, ()>;
A Valid subkey, and its associated data.
A specialized version of ValidKeyAmalgamation
.
Implementations
impl<'a, P> ValidSubordinateKeyAmalgamation<'a, P> where
P: KeyParts,
[src]
P: KeyParts,
pub fn parts_into_public(
self
) -> ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
self
) -> ValidSubordinateKeyAmalgamation<'a, PublicParts>
Changes the key's parts tag to PublicParts
.
pub fn parts_as_public(
&'a self
) -> &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
&'a self
) -> &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
Changes the key's parts tag to PublicParts
.
pub fn parts_into_secret(
self
) -> Result<ValidSubordinateKeyAmalgamation<'a, SecretParts>>
[src]
self
) -> Result<ValidSubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a ValidSubordinateKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a ValidSubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_into_unspecified(
self
) -> ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
self
) -> ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_unspecified(
&'a self
) -> &ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
Trait Implementations
impl<'a> From<&'a ValidKeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ValidSubordinateKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a, P> PrimaryKey<'a, P, SubordinateRole> for ValidSubordinateKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,
impl<'a> TryFrom<&'a ValidKeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
) -> Result<Self>
[src]
p: &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
) -> Result<Self>
impl<'a> TryFrom<&'a ValidKeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
[src]
p: &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
impl<'a, P, P2> TryFrom<ValidKeyAmalgamation<'a, P, UnspecifiedRole, bool>> for ValidSubordinateKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
[src]
P: 'a + KeyParts,
P2: 'a + KeyParts,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(vka: ValidErasedKeyAmalgamation<'a, P>) -> Result<Self>
[src]
impl<'a> TryFrom<ValidKeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: ValidSubordinateKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<ValidKeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
[src]
p: ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
impl<'a, P> ValidateAmalgamation<'a, Key<P, SubordinateRole>> for ValidSubordinateKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,