pub struct Annotations(/* private fields */);
Expand description
Struct which holds the annotations for a policy
Implementations§
Source§impl Annotations
impl Annotations
Trait Implementations§
Source§impl Clone for Annotations
impl Clone for Annotations
Source§fn clone(&self) -> Annotations
fn clone(&self) -> Annotations
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 Debug for Annotations
impl Debug for Annotations
Source§impl Default for Annotations
impl Default for Annotations
Source§impl<'de> Deserialize<'de> for Annotations
impl<'de> Deserialize<'de> for Annotations
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BTreeMap<AnyId, Annotation>> for Annotations
impl From<BTreeMap<AnyId, Annotation>> for Annotations
Source§impl FromIterator<(AnyId, Annotation)> for Annotations
impl FromIterator<(AnyId, Annotation)> for Annotations
Source§fn from_iter<T: IntoIterator<Item = (AnyId, Annotation)>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = (AnyId, Annotation)>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for Annotations
impl Hash for Annotations
Source§impl IntoIterator for Annotations
impl IntoIterator for Annotations
Source§impl Ord for Annotations
impl Ord for Annotations
Source§fn cmp(&self, other: &Annotations) -> Ordering
fn cmp(&self, other: &Annotations) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Annotations
impl PartialEq for Annotations
Source§impl PartialOrd for Annotations
impl PartialOrd for Annotations
Source§impl Serialize for Annotations
impl Serialize for Annotations
impl Eq for Annotations
impl StructuralPartialEq for Annotations
Auto Trait Implementations§
impl Freeze for Annotations
impl RefUnwindSafe for Annotations
impl Send for Annotations
impl Sync for Annotations
impl Unpin for Annotations
impl UnwindSafe for Annotations
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more