Struct gapi_grpc::google::api::Property[][src]

pub struct Property {
    pub name: String,
    pub type: i32,
    pub description: String,
}

Defines project properties.

API services can define properties that can be assigned to consumer projects so that backends can perform response customization without having to make additional calls or maintain additional storage. For example, Maps API defines properties that controls map tile cache period, or whether to embed a watermark in a result.

These values can be set via API producer console. Only API providers can define and set these properties.

Fields

name: String

The name of the property (a.k.a key).

type: i32

The type of this property.

description: String

The description of the property

Implementations

impl Property[src]

pub fn type(&self) -> PropertyType[src]

Returns the enum value of type, or the default if the field is set to an invalid enum value.

pub fn set_type(&mut self, value: PropertyType)[src]

Sets type to the provided enum value.

Trait Implementations

impl Clone for Property[src]

impl Debug for Property[src]

impl Default for Property[src]

impl Message for Property[src]

impl PartialEq<Property> for Property[src]

impl StructuralPartialEq for Property[src]

Auto Trait Implementations

impl RefUnwindSafe for Property

impl Send for Property

impl Sync for Property

impl Unpin for Property

impl UnwindSafe for Property

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<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]