#[non_exhaustive]pub struct AnnotatedField {
pub name: String,
pub number: u32,
pub options: FieldOptions,
}Expand description
One field of an AnnotatedEvent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringField name in the proto.
number: u32Proto tag number.
options: FieldOptionsDecoded (obs.v1.field) options.
Implementations§
Source§impl AnnotatedField
impl AnnotatedField
Sourcepub fn cardinality(&self) -> Cardinality
pub fn cardinality(&self) -> Cardinality
Effective cardinality, defaulting to UNSPECIFIED.
Sourcepub fn classification(&self) -> Classification
pub fn classification(&self) -> Classification
Effective classification, defaulting to INTERNAL.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnnotatedField
impl RefUnwindSafe for AnnotatedField
impl Send for AnnotatedField
impl Sync for AnnotatedField
impl Unpin for AnnotatedField
impl UnsafeUnpin for AnnotatedField
impl UnwindSafe for AnnotatedField
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