Enum gapi_grpc::google::api::resource_descriptor::Style[][src]

[]
#[repr(i32)]pub enum Style {
    Unspecified,
    DeclarativeFriendly,
}
[]

A flag representing a specific style that a resource claims to conform to.

Variants

Unspecified
[]

The unspecified value. Do not use.

DeclarativeFriendly
[]

This resource is intended to be “declarative-friendly”.

Declarative-friendly resources must be more strictly consistent, and setting this to true communicates to tools that this resource should adhere to declarative-friendly expectations.

Note: This is used by the API linter (linter.aip.dev) to enable additional checks.

Implementations

impl Style[src][]

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

Returns true if value is a variant of Style.

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

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

Trait Implementations

impl Clone for Style[src][+]

impl Copy for Style[src]

impl Debug for Style[src][+]

impl Default for Style[src][+]

impl Eq for Style[src]

impl From<Style> for i32[src][+]

impl Hash for Style[src][+]

impl Ord for Style[src][+]

impl PartialEq<Style> for Style[src][+]

impl PartialOrd<Style> for Style[src][+]

impl StructuralEq for Style[src]

impl StructuralPartialEq for Style[src]

Auto Trait Implementations

impl RefUnwindSafe for Style

impl Send for Style

impl Sync for Style

impl Unpin for Style

impl UnwindSafe for Style

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> 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>, 
[src][+]

impl<T> WithSubscriber for T[src][+]