[−][src]Enum opentelemetry_stackdriver::proto::google::api::FieldBehavior
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
Conventional default for enums. Do not use this.
Specifically denotes a field as optional. While all fields in protocol buffers are optional, this may be specified for emphasis if appropriate.
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
).
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).
Denotes a field as input only. This indicates that the field is provided in requests, and the corresponding field is not included in output.
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]
fn clone(&self) -> FieldBehavior
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FieldBehavior
[src]
impl Debug for FieldBehavior
[src]
impl Default for FieldBehavior
[src]
fn default() -> FieldBehavior
[src]
impl Eq for FieldBehavior
[src]
impl From<FieldBehavior> for i32
[src]
fn from(value: FieldBehavior) -> i32
[src]
impl Hash for FieldBehavior
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for FieldBehavior
[src]
fn cmp(&self, other: &FieldBehavior) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<FieldBehavior> for FieldBehavior
[src]
fn eq(&self, other: &FieldBehavior) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<FieldBehavior> for FieldBehavior
[src]
fn partial_cmp(&self, other: &FieldBehavior) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for FieldBehavior
[src]
impl StructuralPartialEq for FieldBehavior
[src]
Auto Trait Implementations
impl RefUnwindSafe for FieldBehavior
impl Send for FieldBehavior
impl Sync for FieldBehavior
impl Unpin for FieldBehavior
impl UnwindSafe for FieldBehavior
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> FutureExt for T
[src]
fn with_context(self, otel_cx: Context) -> WithContext<Self>
[src]
fn with_current_context(self) -> WithContext<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,