[−][src]Type Definition sequoia_openpgp::cert::amalgamation::key::PrimaryKeyAmalgamation
type PrimaryKeyAmalgamation<'a, P> = KeyAmalgamation<'a, P, PrimaryRole, ()>;
A primary key amalgamation.
A specialized version of KeyAmalgamation
.
Implementations
impl<'a, P> PrimaryKeyAmalgamation<'a, P> where
P: KeyParts,
[src]
P: KeyParts,
pub fn parts_into_public(self) -> PrimaryKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_as_public(&'a self) -> &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_into_secret(
self
) -> Result<PrimaryKeyAmalgamation<'a, SecretParts>>
[src]
self
) -> Result<PrimaryKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a PrimaryKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a PrimaryKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_into_unspecified(
self
) -> PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
self
) -> PrimaryKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_unspecified(
&'a self
) -> &PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &PrimaryKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
Trait Implementations
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a PrimaryKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: PrimaryKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a, P> PrimaryKey<'a, P, PrimaryRole> for PrimaryKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: &'a PrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
[src]
impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for PrimaryKeyAmalgamation<'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(ka: ErasedKeyAmalgamation<'a, P>) -> Result<Self>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: PrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
[src]
impl<'a, P> ValidateAmalgamation<'a, Key<P, PrimaryRole>> for PrimaryKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,
type V = ValidPrimaryKeyAmalgamation<'a, P>
The type returned by with_policy
. Read more
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
[src]
T: Into<Option<SystemTime>>,