#[non_exhaustive]pub struct UndeployConversationModelOperationMetadata {
pub conversation_model: String,
pub create_time: Option<Timestamp>,
pub done_time: Option<Timestamp>,
/* private fields */
}Available on crate feature
conversation-models only.Expand description
Metadata for a ConversationModels.UndeployConversationModel 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.conversation_model: StringThe resource name of the conversation model. Format:
projects/<Project ID>/conversationModels/<Conversation Model Id>
create_time: Option<Timestamp>Timestamp when the request to undeploy conversation model was submitted. The time is measured on server side.
done_time: Option<Timestamp>The time when the operation finished.
Implementations§
Source§impl UndeployConversationModelOperationMetadata
impl UndeployConversationModelOperationMetadata
pub fn new() -> Self
Sourcepub fn set_conversation_model<T: Into<String>>(self, v: T) -> Self
pub fn set_conversation_model<T: Into<String>>(self, v: T) -> Self
Sets the value of conversation_model.
§Example
ⓘ
let x = UndeployConversationModelOperationMetadata::new().set_conversation_model("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 = UndeployConversationModelOperationMetadata::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 = UndeployConversationModelOperationMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = UndeployConversationModelOperationMetadata::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
Trait Implementations§
Source§impl Clone for UndeployConversationModelOperationMetadata
impl Clone for UndeployConversationModelOperationMetadata
Source§fn clone(&self) -> UndeployConversationModelOperationMetadata
fn clone(&self) -> UndeployConversationModelOperationMetadata
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 Default for UndeployConversationModelOperationMetadata
impl Default for UndeployConversationModelOperationMetadata
Source§fn default() -> UndeployConversationModelOperationMetadata
fn default() -> UndeployConversationModelOperationMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for UndeployConversationModelOperationMetadata
impl PartialEq for UndeployConversationModelOperationMetadata
Source§fn eq(&self, other: &UndeployConversationModelOperationMetadata) -> bool
fn eq(&self, other: &UndeployConversationModelOperationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UndeployConversationModelOperationMetadata
Auto Trait Implementations§
impl Freeze for UndeployConversationModelOperationMetadata
impl RefUnwindSafe for UndeployConversationModelOperationMetadata
impl Send for UndeployConversationModelOperationMetadata
impl Sync for UndeployConversationModelOperationMetadata
impl Unpin for UndeployConversationModelOperationMetadata
impl UnwindSafe for UndeployConversationModelOperationMetadata
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