pub enum Presence {
Implicit,
Explicit,
}Expand description
Field presence discipline
Variants§
Implicit
Implicit presence. Fields don’t have flag to track presence, and default values are treated as not present.
Used for Proto3 fields.
Explicit
Explicit presence. Fields have flags to track presense.
Use for optional fields.
Trait Implementations§
impl Copy for Presence
impl Eq for Presence
impl StructuralPartialEq for Presence
Auto Trait Implementations§
impl Freeze for Presence
impl RefUnwindSafe for Presence
impl Send for Presence
impl Sync for Presence
impl Unpin for Presence
impl UnwindSafe for Presence
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