Struct prs_lib::crypto::recipients::Recipients
source · pub struct Recipients { /* private fields */ }
Expand description
A list of recipients.
This list is used to define identities (as keys) to encrypt secrets for. All keys should always use the same protocol.
In the future this may support recipients using multiple protocols.
Implementations§
source§impl Recipients
impl Recipients
sourcepub fn remove_all(&mut self, keys: &[Key])
pub fn remove_all(&mut self, keys: &[Key])
Remove the given keys.
Keys that are not found are ignored.
sourcepub fn has_fingerprint(&self, fingerprint: &str) -> bool
pub fn has_fingerprint(&self, fingerprint: &str) -> bool
Check whether this recipient list has the given fingerprint.
Trait Implementations§
source§impl Clone for Recipients
impl Clone for Recipients
source§fn clone(&self) -> Recipients
fn clone(&self) -> Recipients
Returns a copy 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 PartialEq for Recipients
impl PartialEq for Recipients
source§fn eq(&self, other: &Recipients) -> bool
fn eq(&self, other: &Recipients) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl StoreRecipients for Recipients
impl StoreRecipients for Recipients
impl StructuralPartialEq for Recipients
Auto Trait Implementations§
impl Freeze for Recipients
impl RefUnwindSafe for Recipients
impl Send for Recipients
impl Sync for Recipients
impl Unpin for Recipients
impl UnwindSafe for Recipients
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.