[][src]Enum gcp_client::google::api::FieldBehavior

#[repr(i32)]pub enum FieldBehavior {
    Unspecified,
    Optional,
    Required,
    OutputOnly,
    InputOnly,
    Immutable,
}

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.

Variants

Unspecified

Conventional default for enums. Do not use this.

Optional

Specifically denotes a field as optional. While all fields in protocol buffers are optional, this may be specified for emphasis if appropriate.

Required

Denotes a field as required. This indicates that the field must be provided as part of the request, and failure to do so will cause an error (usually INVALID_ARGUMENT).

OutputOnly

Denotes a field as output only. This indicates that the field is provided in responses, but including the field in a request does nothing (the server must ignore it and must not throw an error as a result of the field's presence).

InputOnly

Denotes a field as input only. This indicates that the field is provided in requests, and the corresponding field is not included in output.

Immutable

Denotes a field as immutable. This indicates that the field may be set once in a request to create a resource, but may not be changed thereafter.

Implementations

impl FieldBehavior[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of FieldBehavior.

pub fn from_i32(value: i32) -> Option<FieldBehavior>[src]

Converts an i32 to a FieldBehavior, or None if value is not a valid variant.

Trait Implementations

impl Clone for FieldBehavior[src]

impl Copy for FieldBehavior[src]

impl Debug for FieldBehavior[src]

impl Default for FieldBehavior[src]

impl Eq for FieldBehavior[src]

impl From<FieldBehavior> for i32[src]

impl Hash for FieldBehavior[src]

impl Ord for FieldBehavior[src]

impl PartialEq<FieldBehavior> for FieldBehavior[src]

impl PartialOrd<FieldBehavior> for FieldBehavior[src]

impl StructuralEq for FieldBehavior[src]

impl StructuralPartialEq for FieldBehavior[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]