pub struct PrivacyList(/* private fields */);Expand description
A complete validated Privacy list for application construction.
Implementations§
Source§impl PrivacyList
impl PrivacyList
Sourcepub fn new(
values: impl IntoIterator<Item = PrivacyValue>,
) -> Result<Self, HeaderError>
pub fn new( values: impl IntoIterator<Item = PrivacyValue>, ) -> Result<Self, HeaderError>
Construct a complete list after enforcing its message-wide invariants.
Sourcepub fn contains(&self, wanted: &PrivacyValue) -> bool
pub fn contains(&self, wanted: &PrivacyValue) -> bool
Whether a value occurs, using case-insensitive token comparison.
Trait Implementations§
Source§impl Clone for PrivacyList
impl Clone for PrivacyList
Source§fn clone(&self) -> PrivacyList
fn clone(&self) -> PrivacyList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrivacyList
impl Debug for PrivacyList
Source§impl PartialEq for PrivacyList
impl PartialEq for PrivacyList
Source§fn eq(&self, other: &PrivacyList) -> bool
fn eq(&self, other: &PrivacyList) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PrivacyList
impl StructuralPartialEq for PrivacyList
Auto Trait Implementations§
impl Freeze for PrivacyList
impl RefUnwindSafe for PrivacyList
impl Send for PrivacyList
impl Sync for PrivacyList
impl Unpin for PrivacyList
impl UnsafeUnpin for PrivacyList
impl UnwindSafe for PrivacyList
Blanket Implementations§
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