#[non_exhaustive]pub struct CreateConnectivityTestRequest {
pub parent: String,
pub test_id: String,
pub resource: Option<ConnectivityTest>,
/* private fields */
}Expand description
Request for the CreateConnectivityTest method.
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 parent resource of the Connectivity Test to create:
projects/{project_id}/locations/global
test_id: StringRequired. The logical name of the Connectivity Test in your project with the following restrictions:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-40 characters.
- Must end with a number or a letter.
- Must be unique within the customer project
resource: Option<ConnectivityTest>Required. A ConnectivityTest resource
Implementations§
Source§impl CreateConnectivityTestRequest
impl CreateConnectivityTestRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_test_id<T: Into<String>>(self, v: T) -> Self
pub fn set_test_id<T: Into<String>>(self, v: T) -> Self
Sets the value of test_id.
Sourcepub fn set_resource<T>(self, v: T) -> Selfwhere
T: Into<ConnectivityTest>,
pub fn set_resource<T>(self, v: T) -> Selfwhere
T: Into<ConnectivityTest>,
Sets the value of resource.
Sourcepub fn set_or_clear_resource<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConnectivityTest>,
pub fn set_or_clear_resource<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConnectivityTest>,
Sets or clears the value of resource.
Trait Implementations§
Source§impl Clone for CreateConnectivityTestRequest
impl Clone for CreateConnectivityTestRequest
Source§fn clone(&self) -> CreateConnectivityTestRequest
fn clone(&self) -> CreateConnectivityTestRequest
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 CreateConnectivityTestRequest
impl Default for CreateConnectivityTestRequest
Source§fn default() -> CreateConnectivityTestRequest
fn default() -> CreateConnectivityTestRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateConnectivityTestRequest
impl PartialEq for CreateConnectivityTestRequest
Source§fn eq(&self, other: &CreateConnectivityTestRequest) -> bool
fn eq(&self, other: &CreateConnectivityTestRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateConnectivityTestRequest
Auto Trait Implementations§
impl Freeze for CreateConnectivityTestRequest
impl RefUnwindSafe for CreateConnectivityTestRequest
impl Send for CreateConnectivityTestRequest
impl Sync for CreateConnectivityTestRequest
impl Unpin for CreateConnectivityTestRequest
impl UnwindSafe for CreateConnectivityTestRequest
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