#[non_exhaustive]pub enum AnnotationsForm {
Map(Vec<KeyValueEntry>),
List(Vec<Located<ComposeScalar>>),
}Expand description
The exact authored mapping or list form of service annotations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Map(Vec<KeyValueEntry>)
Ordered mapping syntax with scalar kinds and spelling retained.
List(Vec<Located<ComposeScalar>>)
Ordered raw scalar list items, including invalid scalar kinds retained for diagnostics.
Trait Implementations§
Source§impl Clone for AnnotationsForm
impl Clone for AnnotationsForm
Source§fn clone(&self) -> AnnotationsForm
fn clone(&self) -> AnnotationsForm
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 AnnotationsForm
impl Debug for AnnotationsForm
impl Eq for AnnotationsForm
Source§impl PartialEq for AnnotationsForm
impl PartialEq for AnnotationsForm
impl StructuralPartialEq for AnnotationsForm
Auto Trait Implementations§
impl Freeze for AnnotationsForm
impl RefUnwindSafe for AnnotationsForm
impl Send for AnnotationsForm
impl Sync for AnnotationsForm
impl Unpin for AnnotationsForm
impl UnsafeUnpin for AnnotationsForm
impl UnwindSafe for AnnotationsForm
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