#[non_exhaustive]pub struct CreateExampleRequest {
pub parent: String,
pub example: Option<Example>,
/* private fields */
}Available on crate feature
examples only.Expand description
The request message for Examples.CreateExample.
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.parent: StringRequired. The playbook to create an example for.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>.
example: Option<Example>Required. The example to create.
Implementations§
Source§impl CreateExampleRequest
impl CreateExampleRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_example<T>(self, v: T) -> Self
pub fn set_example<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_example<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_example<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateExampleRequest
impl Clone for CreateExampleRequest
Source§fn clone(&self) -> CreateExampleRequest
fn clone(&self) -> CreateExampleRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateExampleRequest
impl Debug for CreateExampleRequest
Source§impl Default for CreateExampleRequest
impl Default for CreateExampleRequest
Source§fn default() -> CreateExampleRequest
fn default() -> CreateExampleRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateExampleRequest
impl Message for CreateExampleRequest
Source§impl PartialEq for CreateExampleRequest
impl PartialEq for CreateExampleRequest
Source§fn eq(&self, other: &CreateExampleRequest) -> bool
fn eq(&self, other: &CreateExampleRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateExampleRequest
Auto Trait Implementations§
impl Freeze for CreateExampleRequest
impl RefUnwindSafe for CreateExampleRequest
impl Send for CreateExampleRequest
impl Sync for CreateExampleRequest
impl Unpin for CreateExampleRequest
impl UnsafeUnpin for CreateExampleRequest
impl UnwindSafe for CreateExampleRequest
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