Struct gapi_grpc::google::api::serviceusage::v1beta1::Service[][src]

pub struct Service {
    pub name: String,
    pub parent: String,
    pub config: Option<ServiceConfig>,
    pub state: i32,
}

A service that is available for use by the consumer.

Fields

name: String

The resource name of the consumer and service.

A valid name would be:

parent: String

The resource name of the consumer.

A valid name would be:

config: Option<ServiceConfig>

The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the ListServices method. These fields are present only in responses to the GetService method.

state: i32

Whether or not the service has been enabled for use by the consumer.

Implementations

impl Service[src]

pub fn state(&self) -> State[src]

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

pub fn set_state(&mut self, value: State)[src]

Sets state to the provided enum value.

Trait Implementations

impl Clone for Service[src]

impl Debug for Service[src]

impl Default for Service[src]

impl Message for Service[src]

impl PartialEq<Service> for Service[src]

impl StructuralPartialEq for Service[src]

Auto Trait Implementations

impl RefUnwindSafe for Service

impl Send for Service

impl Sync for Service

impl Unpin for Service

impl UnwindSafe for Service

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]