OperationMetadata

Struct OperationMetadata 

Source
#[non_exhaustive]
pub struct OperationMetadata { pub create_time: Option<Timestamp>, pub update_time: Option<Timestamp>, pub resource: String, pub method: String, pub kms_key_name: String, pub kms_key_version_name: String, pub progress_percent: i32, pub request: Option<Request>, pub metadata: Option<Metadata>, /* private fields */ }
Expand description

Represents the metadata of a long-running operation.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§create_time: Option<Timestamp>

The time the operation was created.

§update_time: Option<Timestamp>

The time the operation was last updated.

§resource: String

The resource path for the target of the operation.

§method: String

The method that triggered the operation.

§kms_key_name: String

The KMS key name with which the content of the Operation is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

§kms_key_version_name: String

The KMS key version name with which content of the Operation is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}.

§progress_percent: i32

The percent progress of the Operation. Values can range from 0-100. If the value is 100, then the operation is finished.

§request: Option<Request>

The request that spawned the Operation.

§metadata: Option<Metadata>

Specific metadata per RPC.

Implementations§

Source§

impl OperationMetadata

Source

pub fn new() -> Self

Source

pub fn set_create_time<T>(self, v: T) -> Self
where T: Into<Timestamp>,

Sets the value of create_time.

§Example
use wkt::Timestamp;
let x = OperationMetadata::new().set_create_time(Timestamp::default()/* use setters */);
Source

pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
where T: Into<Timestamp>,

Sets or clears the value of create_time.

§Example
use wkt::Timestamp;
let x = OperationMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = OperationMetadata::new().set_or_clear_create_time(None::<Timestamp>);
Source

pub fn set_update_time<T>(self, v: T) -> Self
where T: Into<Timestamp>,

Sets the value of update_time.

§Example
use wkt::Timestamp;
let x = OperationMetadata::new().set_update_time(Timestamp::default()/* use setters */);
Source

pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
where T: Into<Timestamp>,

Sets or clears the value of update_time.

§Example
use wkt::Timestamp;
let x = OperationMetadata::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = OperationMetadata::new().set_or_clear_update_time(None::<Timestamp>);
Source

pub fn set_resource<T: Into<String>>(self, v: T) -> Self

Sets the value of resource.

§Example
let x = OperationMetadata::new().set_resource("example");
Source

pub fn set_method<T: Into<String>>(self, v: T) -> Self

Sets the value of method.

§Example
let x = OperationMetadata::new().set_method("example");
Source

pub fn set_kms_key_name<T: Into<String>>(self, v: T) -> Self

Sets the value of kms_key_name.

§Example
let x = OperationMetadata::new().set_kms_key_name("example");
Source

pub fn set_kms_key_version_name<T: Into<String>>(self, v: T) -> Self

Sets the value of kms_key_version_name.

§Example
let x = OperationMetadata::new().set_kms_key_version_name("example");
Source

pub fn set_progress_percent<T: Into<i32>>(self, v: T) -> Self

Sets the value of progress_percent.

§Example
let x = OperationMetadata::new().set_progress_percent(42);
Source

pub fn set_request<T: Into<Option<Request>>>(self, v: T) -> Self

Sets the value of request.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::BatchRecognizeRequest;
let x = OperationMetadata::new().set_request(Some(
    google_cloud_speech_v2::model::operation_metadata::Request::BatchRecognizeRequest(BatchRecognizeRequest::default().into())));
Source

pub fn batch_recognize_request(&self) -> Option<&Box<BatchRecognizeRequest>>

The value of request if it holds a BatchRecognizeRequest, None if the field is not set or holds a different branch.

Source

pub fn set_batch_recognize_request<T: Into<Box<BatchRecognizeRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a BatchRecognizeRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::BatchRecognizeRequest;
let x = OperationMetadata::new().set_batch_recognize_request(BatchRecognizeRequest::default()/* use setters */);
assert!(x.batch_recognize_request().is_some());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn create_recognizer_request(&self) -> Option<&Box<CreateRecognizerRequest>>

The value of request if it holds a CreateRecognizerRequest, None if the field is not set or holds a different branch.

Source

pub fn set_create_recognizer_request<T: Into<Box<CreateRecognizerRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a CreateRecognizerRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::CreateRecognizerRequest;
let x = OperationMetadata::new().set_create_recognizer_request(CreateRecognizerRequest::default()/* use setters */);
assert!(x.create_recognizer_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn update_recognizer_request(&self) -> Option<&Box<UpdateRecognizerRequest>>

The value of request if it holds a UpdateRecognizerRequest, None if the field is not set or holds a different branch.

Source

pub fn set_update_recognizer_request<T: Into<Box<UpdateRecognizerRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a UpdateRecognizerRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::UpdateRecognizerRequest;
let x = OperationMetadata::new().set_update_recognizer_request(UpdateRecognizerRequest::default()/* use setters */);
assert!(x.update_recognizer_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn delete_recognizer_request(&self) -> Option<&Box<DeleteRecognizerRequest>>

The value of request if it holds a DeleteRecognizerRequest, None if the field is not set or holds a different branch.

Source

pub fn set_delete_recognizer_request<T: Into<Box<DeleteRecognizerRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a DeleteRecognizerRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::DeleteRecognizerRequest;
let x = OperationMetadata::new().set_delete_recognizer_request(DeleteRecognizerRequest::default()/* use setters */);
assert!(x.delete_recognizer_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn undelete_recognizer_request( &self, ) -> Option<&Box<UndeleteRecognizerRequest>>

The value of request if it holds a UndeleteRecognizerRequest, None if the field is not set or holds a different branch.

Source

pub fn set_undelete_recognizer_request<T: Into<Box<UndeleteRecognizerRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a UndeleteRecognizerRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::UndeleteRecognizerRequest;
let x = OperationMetadata::new().set_undelete_recognizer_request(UndeleteRecognizerRequest::default()/* use setters */);
assert!(x.undelete_recognizer_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn create_custom_class_request( &self, ) -> Option<&Box<CreateCustomClassRequest>>

The value of request if it holds a CreateCustomClassRequest, None if the field is not set or holds a different branch.

Source

pub fn set_create_custom_class_request<T: Into<Box<CreateCustomClassRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a CreateCustomClassRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::CreateCustomClassRequest;
let x = OperationMetadata::new().set_create_custom_class_request(CreateCustomClassRequest::default()/* use setters */);
assert!(x.create_custom_class_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn update_custom_class_request( &self, ) -> Option<&Box<UpdateCustomClassRequest>>

The value of request if it holds a UpdateCustomClassRequest, None if the field is not set or holds a different branch.

Source

pub fn set_update_custom_class_request<T: Into<Box<UpdateCustomClassRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a UpdateCustomClassRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::UpdateCustomClassRequest;
let x = OperationMetadata::new().set_update_custom_class_request(UpdateCustomClassRequest::default()/* use setters */);
assert!(x.update_custom_class_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn delete_custom_class_request( &self, ) -> Option<&Box<DeleteCustomClassRequest>>

The value of request if it holds a DeleteCustomClassRequest, None if the field is not set or holds a different branch.

Source

pub fn set_delete_custom_class_request<T: Into<Box<DeleteCustomClassRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a DeleteCustomClassRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::DeleteCustomClassRequest;
let x = OperationMetadata::new().set_delete_custom_class_request(DeleteCustomClassRequest::default()/* use setters */);
assert!(x.delete_custom_class_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn undelete_custom_class_request( &self, ) -> Option<&Box<UndeleteCustomClassRequest>>

The value of request if it holds a UndeleteCustomClassRequest, None if the field is not set or holds a different branch.

Source

pub fn set_undelete_custom_class_request<T: Into<Box<UndeleteCustomClassRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a UndeleteCustomClassRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::UndeleteCustomClassRequest;
let x = OperationMetadata::new().set_undelete_custom_class_request(UndeleteCustomClassRequest::default()/* use setters */);
assert!(x.undelete_custom_class_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn create_phrase_set_request(&self) -> Option<&Box<CreatePhraseSetRequest>>

The value of request if it holds a CreatePhraseSetRequest, None if the field is not set or holds a different branch.

Source

pub fn set_create_phrase_set_request<T: Into<Box<CreatePhraseSetRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a CreatePhraseSetRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::CreatePhraseSetRequest;
let x = OperationMetadata::new().set_create_phrase_set_request(CreatePhraseSetRequest::default()/* use setters */);
assert!(x.create_phrase_set_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn update_phrase_set_request(&self) -> Option<&Box<UpdatePhraseSetRequest>>

The value of request if it holds a UpdatePhraseSetRequest, None if the field is not set or holds a different branch.

Source

pub fn set_update_phrase_set_request<T: Into<Box<UpdatePhraseSetRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a UpdatePhraseSetRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::UpdatePhraseSetRequest;
let x = OperationMetadata::new().set_update_phrase_set_request(UpdatePhraseSetRequest::default()/* use setters */);
assert!(x.update_phrase_set_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn delete_phrase_set_request(&self) -> Option<&Box<DeletePhraseSetRequest>>

The value of request if it holds a DeletePhraseSetRequest, None if the field is not set or holds a different branch.

Source

pub fn set_delete_phrase_set_request<T: Into<Box<DeletePhraseSetRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a DeletePhraseSetRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::DeletePhraseSetRequest;
let x = OperationMetadata::new().set_delete_phrase_set_request(DeletePhraseSetRequest::default()/* use setters */);
assert!(x.delete_phrase_set_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn undelete_phrase_set_request( &self, ) -> Option<&Box<UndeletePhraseSetRequest>>

The value of request if it holds a UndeletePhraseSetRequest, None if the field is not set or holds a different branch.

Source

pub fn set_undelete_phrase_set_request<T: Into<Box<UndeletePhraseSetRequest>>>( self, v: T, ) -> Self

Sets the value of request to hold a UndeletePhraseSetRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::UndeletePhraseSetRequest;
let x = OperationMetadata::new().set_undelete_phrase_set_request(UndeletePhraseSetRequest::default()/* use setters */);
assert!(x.undelete_phrase_set_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.update_config_request().is_none());
Source

pub fn update_config_request(&self) -> Option<&Box<UpdateConfigRequest>>

👎Deprecated

The value of request if it holds a UpdateConfigRequest, None if the field is not set or holds a different branch.

Source

pub fn set_update_config_request<T: Into<Box<UpdateConfigRequest>>>( self, v: T, ) -> Self

👎Deprecated

Sets the value of request to hold a UpdateConfigRequest.

Note that all the setters affecting request are mutually exclusive.

§Example
use google_cloud_speech_v2::model::UpdateConfigRequest;
let x = OperationMetadata::new().set_update_config_request(UpdateConfigRequest::default()/* use setters */);
assert!(x.update_config_request().is_some());
assert!(x.batch_recognize_request().is_none());
assert!(x.create_recognizer_request().is_none());
assert!(x.update_recognizer_request().is_none());
assert!(x.delete_recognizer_request().is_none());
assert!(x.undelete_recognizer_request().is_none());
assert!(x.create_custom_class_request().is_none());
assert!(x.update_custom_class_request().is_none());
assert!(x.delete_custom_class_request().is_none());
assert!(x.undelete_custom_class_request().is_none());
assert!(x.create_phrase_set_request().is_none());
assert!(x.update_phrase_set_request().is_none());
assert!(x.delete_phrase_set_request().is_none());
assert!(x.undelete_phrase_set_request().is_none());
Source

pub fn set_metadata<T: Into<Option<Metadata>>>(self, v: T) -> Self

Sets the value of metadata.

Note that all the setters affecting metadata are mutually exclusive.

§Example
use google_cloud_speech_v2::model::BatchRecognizeMetadata;
let x = OperationMetadata::new().set_metadata(Some(
    google_cloud_speech_v2::model::operation_metadata::Metadata::BatchRecognizeMetadata(BatchRecognizeMetadata::default().into())));
Source

pub fn batch_recognize_metadata(&self) -> Option<&Box<BatchRecognizeMetadata>>

The value of metadata if it holds a BatchRecognizeMetadata, None if the field is not set or holds a different branch.

Source

pub fn set_batch_recognize_metadata<T: Into<Box<BatchRecognizeMetadata>>>( self, v: T, ) -> Self

Sets the value of metadata to hold a BatchRecognizeMetadata.

Note that all the setters affecting metadata are mutually exclusive.

§Example
use google_cloud_speech_v2::model::BatchRecognizeMetadata;
let x = OperationMetadata::new().set_batch_recognize_metadata(BatchRecognizeMetadata::default()/* use setters */);
assert!(x.batch_recognize_metadata().is_some());

Trait Implementations§

Source§

impl Clone for OperationMetadata

Source§

fn clone(&self) -> OperationMetadata

Returns a duplicate 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 OperationMetadata

Source§

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

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

impl Default for OperationMetadata

Source§

fn default() -> OperationMetadata

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

impl Message for OperationMetadata

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for OperationMetadata

Source§

fn eq(&self, other: &OperationMetadata) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for OperationMetadata

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

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

Source§

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

Source§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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