Enum gapi_grpc::google::api::resource_descriptor::Style [−][src]
pub enum Style { Unspecified, DeclarativeFriendly, }
A flag representing a specific style that a resource claims to conform to.
Variants
The unspecified value. Do not use.
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][+]
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,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src][+]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
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][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,