#[non_exhaustive]pub struct UserActionReference {
pub method: String,
pub reference: Option<Reference>,
/* private fields */
}Expand description
References an API call. It contains more information about long running operation and Jobs that are triggered by the API call.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.method: StringThe method name of the API RPC call. For example, “/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset”
reference: Option<Reference>Implementations§
Source§impl UserActionReference
impl UserActionReference
pub fn new() -> Self
Sourcepub fn set_method<T: Into<String>>(self, v: T) -> Self
pub fn set_method<T: Into<String>>(self, v: T) -> Self
Sets the value of method.
Sourcepub fn set_reference<T: Into<Option<Reference>>>(self, v: T) -> Self
pub fn set_reference<T: Into<Option<Reference>>>(self, v: T) -> Self
Sets the value of reference.
Note that all the setters affecting reference are mutually
exclusive.
Sourcepub fn operation(&self) -> Option<&String>
pub fn operation(&self) -> Option<&String>
The value of reference
if it holds a Operation, None if the field is not set or
holds a different branch.
Sourcepub fn set_operation<T: Into<String>>(self, v: T) -> Self
pub fn set_operation<T: Into<String>>(self, v: T) -> Self
Sets the value of reference
to hold a Operation.
Note that all the setters affecting reference are
mutually exclusive.
Sourcepub fn data_labeling_job(&self) -> Option<&String>
pub fn data_labeling_job(&self) -> Option<&String>
The value of reference
if it holds a DataLabelingJob, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_labeling_job<T: Into<String>>(self, v: T) -> Self
pub fn set_data_labeling_job<T: Into<String>>(self, v: T) -> Self
Sets the value of reference
to hold a DataLabelingJob.
Note that all the setters affecting reference are
mutually exclusive.
Trait Implementations§
Source§impl Clone for UserActionReference
impl Clone for UserActionReference
Source§fn clone(&self) -> UserActionReference
fn clone(&self) -> UserActionReference
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more