#[non_exhaustive]pub struct UserActionReference {
pub method: String,
pub reference: Option<Reference>,
/* private fields */
}Available on crate feature
dataset-service only.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
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.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
Sourcepub fn set_reference<T: Into<Option<Reference>>>(self, v: T) -> Self
pub fn set_reference<T: Into<Option<Reference>>>(self, v: T) -> Self
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
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
Trait Implementations§
Source§impl Clone for UserActionReference
impl Clone for UserActionReference
Source§fn clone(&self) -> UserActionReference
fn clone(&self) -> UserActionReference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserActionReference
impl Debug for UserActionReference
Source§impl Default for UserActionReference
impl Default for UserActionReference
Source§fn default() -> UserActionReference
fn default() -> UserActionReference
Returns the “default value” for a type. Read more
Source§impl Message for UserActionReference
impl Message for UserActionReference
Source§impl PartialEq for UserActionReference
impl PartialEq for UserActionReference
impl StructuralPartialEq for UserActionReference
Auto Trait Implementations§
impl Freeze for UserActionReference
impl RefUnwindSafe for UserActionReference
impl Send for UserActionReference
impl Sync for UserActionReference
impl Unpin for UserActionReference
impl UnwindSafe for UserActionReference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more