#[non_exhaustive]pub struct SessionOperationMetadata {
pub session: String,
pub session_uuid: String,
pub create_time: Option<Timestamp>,
pub done_time: Option<Timestamp>,
pub operation_type: SessionOperationType,
pub description: String,
pub labels: HashMap<String, String>,
pub warnings: Vec<String>,
/* private fields */
}Expand description
Metadata describing the Session 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.session: StringName of the session for the operation.
session_uuid: StringSession UUID for the operation.
create_time: Option<Timestamp>The time when the operation was created.
done_time: Option<Timestamp>The time when the operation was finished.
operation_type: SessionOperationTypeThe operation type.
description: StringShort description of the operation.
labels: HashMap<String, String>Labels associated with the operation.
warnings: Vec<String>Warnings encountered during operation execution.
Implementations§
Source§impl SessionOperationMetadata
impl SessionOperationMetadata
pub fn new() -> Self
Sourcepub fn set_session<T: Into<String>>(self, v: T) -> Self
pub fn set_session<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_session_uuid<T: Into<String>>(self, v: T) -> Self
pub fn set_session_uuid<T: Into<String>>(self, v: T) -> Self
Sets the value of session_uuid.
§Example
ⓘ
let x = SessionOperationMetadata::new().set_session_uuid("example");Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = SessionOperationMetadata::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = SessionOperationMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = SessionOperationMetadata::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_done_time<T>(self, v: T) -> Self
pub fn set_done_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_done_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_done_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_operation_type<T: Into<SessionOperationType>>(self, v: T) -> Self
pub fn set_operation_type<T: Into<SessionOperationType>>(self, v: T) -> Self
Sets the value of operation_type.
§Example
ⓘ
use google_cloud_dataproc_v1::model::session_operation_metadata::SessionOperationType;
let x0 = SessionOperationMetadata::new().set_operation_type(SessionOperationType::Create);
let x1 = SessionOperationMetadata::new().set_operation_type(SessionOperationType::Terminate);
let x2 = SessionOperationMetadata::new().set_operation_type(SessionOperationType::Delete);Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
§Example
ⓘ
let x = SessionOperationMetadata::new().set_description("example");Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_warnings<T, V>(self, v: T) -> Self
pub fn set_warnings<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SessionOperationMetadata
impl Clone for SessionOperationMetadata
Source§fn clone(&self) -> SessionOperationMetadata
fn clone(&self) -> SessionOperationMetadata
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 SessionOperationMetadata
impl Debug for SessionOperationMetadata
Source§impl Default for SessionOperationMetadata
impl Default for SessionOperationMetadata
Source§fn default() -> SessionOperationMetadata
fn default() -> SessionOperationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for SessionOperationMetadata
impl Message for SessionOperationMetadata
Source§impl PartialEq for SessionOperationMetadata
impl PartialEq for SessionOperationMetadata
impl StructuralPartialEq for SessionOperationMetadata
Auto Trait Implementations§
impl Freeze for SessionOperationMetadata
impl RefUnwindSafe for SessionOperationMetadata
impl Send for SessionOperationMetadata
impl Sync for SessionOperationMetadata
impl Unpin for SessionOperationMetadata
impl UnwindSafe for SessionOperationMetadata
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