[][src]Struct gcp_client::google::cloud::bigquery::reservation::v1beta1::Assignment

pub struct Assignment {
    pub name: String,
    pub assignee: String,
    pub job_type: i32,
    pub state: i32,
}

A Assignment allows a project to submit jobs of a certain type using slots from the specified reservation.

Fields

name: String

Output only. Name of the resource. E.g.: projects/myproject/locations/US/reservations/team1-prod/assignments/123.

assignee: String

The resource which will use the reservation. E.g. projects/myproject, folders/123, organizations/456.

job_type: i32

Which type of jobs will use the reservation.

state: i32

Output only. State of the assignment.

Implementations

impl Assignment[src]

pub fn job_type(&self) -> JobType[src]

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

pub fn set_job_type(&mut self, value: JobType)[src]

Sets job_type to the provided enum value.

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 Assignment[src]

impl Debug for Assignment[src]

impl Default for Assignment[src]

impl Message for Assignment[src]

impl PartialEq<Assignment> for Assignment[src]

impl StructuralPartialEq for Assignment[src]

Auto Trait Implementations

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

impl<T> WithSubscriber for T[src]