#[non_exhaustive]pub struct DeployConversationModelOperationMetadata {
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.DeployConversationModel 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 request to deploy conversation model was submitted. The time is measured on server side.
done_time: Option<Timestamp>The time when the operation finished.
Implementations§
Source§impl DeployConversationModelOperationMetadata
impl DeployConversationModelOperationMetadata
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 = DeployConversationModelOperationMetadata::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 = DeployConversationModelOperationMetadata::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 = DeployConversationModelOperationMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = DeployConversationModelOperationMetadata::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 DeployConversationModelOperationMetadata
impl Clone for DeployConversationModelOperationMetadata
Source§fn clone(&self) -> DeployConversationModelOperationMetadata
fn clone(&self) -> DeployConversationModelOperationMetadata
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 DeployConversationModelOperationMetadata
impl Default for DeployConversationModelOperationMetadata
Source§fn default() -> DeployConversationModelOperationMetadata
fn default() -> DeployConversationModelOperationMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeployConversationModelOperationMetadata
impl PartialEq for DeployConversationModelOperationMetadata
Source§fn eq(&self, other: &DeployConversationModelOperationMetadata) -> bool
fn eq(&self, other: &DeployConversationModelOperationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeployConversationModelOperationMetadata
Auto Trait Implementations§
impl Freeze for DeployConversationModelOperationMetadata
impl RefUnwindSafe for DeployConversationModelOperationMetadata
impl Send for DeployConversationModelOperationMetadata
impl Sync for DeployConversationModelOperationMetadata
impl Unpin for DeployConversationModelOperationMetadata
impl UnwindSafe for DeployConversationModelOperationMetadata
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