Type Definition sequoia_openpgp::cert::amalgamation::key::PrimaryKeyAmalgamation
source · [−]pub type PrimaryKeyAmalgamation<'a, P> = KeyAmalgamation<'a, P, PrimaryRole, ()>;
Expand description
A primary key amalgamation.
A specialized version of KeyAmalgamation
.
Implementations
sourceimpl<'a, P> PrimaryKeyAmalgamation<'a, P> where
P: KeyParts,
impl<'a, P> PrimaryKeyAmalgamation<'a, P> where
P: KeyParts,
sourcepub fn parts_into_public(self) -> PrimaryKeyAmalgamation<'a, PublicParts>
pub fn parts_into_public(self) -> PrimaryKeyAmalgamation<'a, PublicParts>
Changes the key’s parts tag to PublicParts
.
sourcepub fn parts_as_public(&'a self) -> &'a PrimaryKeyAmalgamation<'a, PublicParts>
pub fn parts_as_public(&'a self) -> &'a PrimaryKeyAmalgamation<'a, PublicParts>
Changes the key’s parts tag to PublicParts
.
sourcepub fn parts_into_secret(
self
) -> Result<PrimaryKeyAmalgamation<'a, SecretParts>>
pub fn parts_into_secret(
self
) -> Result<PrimaryKeyAmalgamation<'a, SecretParts>>
Changes the key’s parts tag to SecretParts
.
sourcepub fn parts_as_secret(
&'a self
) -> Result<&'a PrimaryKeyAmalgamation<'a, SecretParts>>
pub fn parts_as_secret(
&'a self
) -> Result<&'a PrimaryKeyAmalgamation<'a, SecretParts>>
Changes the key’s parts tag to SecretParts
.
sourcepub fn parts_into_unspecified(
self
) -> PrimaryKeyAmalgamation<'a, UnspecifiedParts>
pub fn parts_into_unspecified(
self
) -> PrimaryKeyAmalgamation<'a, UnspecifiedParts>
Changes the key’s parts tag to UnspecifiedParts
.
sourcepub fn parts_as_unspecified(
&'a self
) -> &PrimaryKeyAmalgamation<'a, UnspecifiedParts>
pub fn parts_as_unspecified(
&'a self
) -> &PrimaryKeyAmalgamation<'a, UnspecifiedParts>
Changes the key’s parts tag to UnspecifiedParts
.
Trait Implementations
sourceimpl<'a> From<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
sourcefn from(p: &'a PrimaryKeyAmalgamation<'a, PublicParts>) -> Self
fn from(p: &'a PrimaryKeyAmalgamation<'a, PublicParts>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
sourcefn from(p: &'a PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: &'a PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
sourcefn from(p: &'a PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: &'a PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
sourcefn from(p: &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
fn from(p: &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
sourcefn from(p: PrimaryKeyAmalgamation<'a, PublicParts>) -> Self
fn from(p: PrimaryKeyAmalgamation<'a, PublicParts>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
sourcefn from(p: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
sourcefn from(p: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
fn from(p: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
sourcefn from(p: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
fn from(p: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
Converts to this type from the input type.
sourceimpl<'a, P> PrimaryKey<'a, P, PrimaryRole> for PrimaryKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
impl<'a, P> PrimaryKey<'a, P, PrimaryRole> for PrimaryKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
sourceimpl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
sourcefn try_from(p: &'a PrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
fn try_from(p: &'a PrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
Performs the conversion.
sourceimpl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
sourcefn try_from(p: &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
fn try_from(p: &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
Performs the conversion.
sourceimpl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for PrimaryKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for PrimaryKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
sourceimpl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
sourcefn try_from(p: PrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
fn try_from(p: PrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
Performs the conversion.
sourceimpl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
sourcefn try_from(p: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
fn try_from(p: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
Performs the conversion.
sourceimpl<'a, P> ValidateAmalgamation<'a, Key<P, PrimaryRole>> for PrimaryKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
impl<'a, P> ValidateAmalgamation<'a, Key<P, PrimaryRole>> for PrimaryKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
type V = ValidKeyAmalgamation<'a, P, PrimaryRole, ()>
type V = ValidKeyAmalgamation<'a, P, PrimaryRole, ()>
The type returned by with_policy
. Read more
sourcefn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
Uses the specified Policy
and reference time with the amalgamation. Read more