pub struct FieldBehavior(/* private fields */);Expand description
An indicator of the behavior of a given field (for example, that a field is required in requests, or given as output but ignored as input). This does not change the behavior in protocol buffers itself; it only denotes the behavior and may affect how API tooling handles the field.
Note: This enum may receive new values in the future.
Implementations§
Trait Implementations§
Source§impl Clone for FieldBehavior
impl Clone for FieldBehavior
Source§fn clone(&self) -> FieldBehavior
fn clone(&self) -> FieldBehavior
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 FieldBehavior
impl Debug for FieldBehavior
Source§impl Default for FieldBehavior
impl Default for FieldBehavior
Source§fn default() -> FieldBehavior
fn default() -> FieldBehavior
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FieldBehavior
impl<'de> Deserialize<'de> for FieldBehavior
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<String> for FieldBehavior
impl From<String> for FieldBehavior
Source§impl PartialEq for FieldBehavior
impl PartialEq for FieldBehavior
Source§impl Serialize for FieldBehavior
impl Serialize for FieldBehavior
impl StructuralPartialEq for FieldBehavior
Auto Trait Implementations§
impl Freeze for FieldBehavior
impl RefUnwindSafe for FieldBehavior
impl Send for FieldBehavior
impl Sync for FieldBehavior
impl Unpin for FieldBehavior
impl UnwindSafe for FieldBehavior
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