#[non_exhaustive]pub struct CreateTestCaseRequest {
pub parent: String,
pub test_case: Option<TestCase>,
/* private fields */
}Available on crate feature
test-cases only.Expand description
The request message for TestCases.CreateTestCase.
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 agent to create the test case for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
test_case: Option<TestCase>Required. The test case to create.
Implementations§
Source§impl CreateTestCaseRequest
impl CreateTestCaseRequest
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_test_case<T>(self, v: T) -> Self
pub fn set_test_case<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_test_case<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_test_case<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateTestCaseRequest
impl Clone for CreateTestCaseRequest
Source§fn clone(&self) -> CreateTestCaseRequest
fn clone(&self) -> CreateTestCaseRequest
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 CreateTestCaseRequest
impl Debug for CreateTestCaseRequest
Source§impl Default for CreateTestCaseRequest
impl Default for CreateTestCaseRequest
Source§fn default() -> CreateTestCaseRequest
fn default() -> CreateTestCaseRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateTestCaseRequest
impl Message for CreateTestCaseRequest
Source§impl PartialEq for CreateTestCaseRequest
impl PartialEq for CreateTestCaseRequest
Source§fn eq(&self, other: &CreateTestCaseRequest) -> bool
fn eq(&self, other: &CreateTestCaseRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateTestCaseRequest
Auto Trait Implementations§
impl Freeze for CreateTestCaseRequest
impl RefUnwindSafe for CreateTestCaseRequest
impl Send for CreateTestCaseRequest
impl Sync for CreateTestCaseRequest
impl Unpin for CreateTestCaseRequest
impl UnsafeUnpin for CreateTestCaseRequest
impl UnwindSafe for CreateTestCaseRequest
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