pub struct Operation {
Show 22 fields pub client_operation_id: Option<String>, pub creation_timestamp: Option<String>, pub end_time: Option<String>, pub error: Option<OperationError>, pub http_error_message: Option<String>, pub http_error_status_code: Option<i32>, pub id: Option<u64>, pub insert_time: Option<String>, pub kind: Option<String>, pub name: Option<String>, pub operation_type: Option<String>, pub progress: Option<i32>, pub region: Option<String>, pub self_link: Option<String>, pub start_time: Option<String>, pub status: Option<String>, pub status_message: Option<String>, pub target_id: Option<u64>, pub target_link: Option<String>, pub user: Option<String>, pub warnings: Option<Vec<OperationWarnings>>, pub zone: Option<String>,
}
Expand description

An operation resource, used to manage asynchronous API requests.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§client_operation_id: Option<String>

[Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.

§creation_timestamp: Option<String>

[Output Only] The time that this operation was requested, in RFC3339 text format.

§end_time: Option<String>

[Output Only] The time that this operation was completed, in RFC3339 text format.

§error: Option<OperationError>

[Output Only] If errors occurred during processing of this operation, this field will be populated.

§http_error_message: Option<String>

[Output only] If operation fails, the HTTP error message returned.

§http_error_status_code: Option<i32>

[Output only] If operation fails, the HTTP error status code returned.

§id: Option<u64>

[Output Only] Unique identifier for the resource, generated by the server.

§insert_time: Option<String>

[Output Only] The time that this operation was requested, in RFC3339 text format.

§kind: Option<String>

[Output only] Type of the resource.

§name: Option<String>

[Output Only] Name of the resource.

§operation_type: Option<String>

[Output only] Type of the operation. Operations include insert, update, and delete.

§progress: Option<i32>

[Output only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.

§region: Option<String>

[Output Only] URL of the region where the operation resides. Only available when performing regional operations.

§self_link: Option<String>

[Output Only] Server-defined fully-qualified URL for this resource.

§start_time: Option<String>

[Output Only] The time that this operation was started by the server, in RFC3339 text format.

§status: Option<String>

[Output Only] Status of the operation.

§status_message: Option<String>

[Output Only] An optional textual description of the current status of the operation.

§target_id: Option<u64>

[Output Only] Unique target ID which identifies a particular incarnation of the target.

§target_link: Option<String>

[Output only] URL of the resource the operation is mutating.

§user: Option<String>

[Output Only] User who requested the operation, for example: user@example.com.

§warnings: Option<Vec<OperationWarnings>>

[Output Only] If there are issues with this operation, a warning is returned.

§zone: Option<String>

[Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.

Trait Implementations§

source§

impl Clone for Operation

source§

fn clone(&self) -> Operation

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Operation

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Operation

source§

fn default() -> Operation

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Operation

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Operation

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ResponseResult for Operation

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,