pub enum Occurrence {
Optional,
Repeated,
Required,
}
Expand description
A field occurrence: how any times field may appear moved from model since it’s just for parsing now
Variants§
Optional
A well-formed message can have zero or one of this field (but not more than one).
Repeated
This field can be repeated any number of times (including zero) in a well-formed message. The order of the repeated values will be preserved.
Required
A well-formed message must have exactly one of this field.
Trait Implementations§
Source§impl Clone for Occurrence
impl Clone for Occurrence
Source§fn clone(&self) -> Occurrence
fn clone(&self) -> Occurrence
Returns a duplicate 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 Occurrence
impl Debug for Occurrence
Source§impl Hash for Occurrence
impl Hash for Occurrence
Source§impl PartialEq for Occurrence
impl PartialEq for Occurrence
impl Copy for Occurrence
impl Eq for Occurrence
impl StructuralPartialEq for Occurrence
Auto Trait Implementations§
impl Freeze for Occurrence
impl RefUnwindSafe for Occurrence
impl Send for Occurrence
impl Sync for Occurrence
impl Unpin for Occurrence
impl UnwindSafe for Occurrence
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