#[non_exhaustive]pub struct CreateClientTlsPolicyRequest {
pub parent: String,
pub client_tls_policy_id: String,
pub client_tls_policy: Option<ClientTlsPolicy>,
/* private fields */
}Expand description
Request used by the CreateClientTlsPolicy 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 ClientTlsPolicy. Must be in
the format projects/*/locations/{location}.
client_tls_policy_id: StringRequired. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. “client_mtls_policy”.
client_tls_policy: Option<ClientTlsPolicy>Required. ClientTlsPolicy resource to be created.
Implementations§
Source§impl CreateClientTlsPolicyRequest
impl CreateClientTlsPolicyRequest
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_client_tls_policy_id<T: Into<String>>(self, v: T) -> Self
pub fn set_client_tls_policy_id<T: Into<String>>(self, v: T) -> Self
Sets the value of client_tls_policy_id.
Sourcepub fn set_client_tls_policy<T>(self, v: T) -> Selfwhere
T: Into<ClientTlsPolicy>,
pub fn set_client_tls_policy<T>(self, v: T) -> Selfwhere
T: Into<ClientTlsPolicy>,
Sets the value of client_tls_policy.
Sourcepub fn set_or_clear_client_tls_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClientTlsPolicy>,
pub fn set_or_clear_client_tls_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClientTlsPolicy>,
Sets or clears the value of client_tls_policy.
Trait Implementations§
Source§impl Clone for CreateClientTlsPolicyRequest
impl Clone for CreateClientTlsPolicyRequest
Source§fn clone(&self) -> CreateClientTlsPolicyRequest
fn clone(&self) -> CreateClientTlsPolicyRequest
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 Debug for CreateClientTlsPolicyRequest
impl Debug for CreateClientTlsPolicyRequest
Source§impl Default for CreateClientTlsPolicyRequest
impl Default for CreateClientTlsPolicyRequest
Source§fn default() -> CreateClientTlsPolicyRequest
fn default() -> CreateClientTlsPolicyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateClientTlsPolicyRequest
impl PartialEq for CreateClientTlsPolicyRequest
Source§fn eq(&self, other: &CreateClientTlsPolicyRequest) -> bool
fn eq(&self, other: &CreateClientTlsPolicyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateClientTlsPolicyRequest
Auto Trait Implementations§
impl Freeze for CreateClientTlsPolicyRequest
impl RefUnwindSafe for CreateClientTlsPolicyRequest
impl Send for CreateClientTlsPolicyRequest
impl Sync for CreateClientTlsPolicyRequest
impl Unpin for CreateClientTlsPolicyRequest
impl UnwindSafe for CreateClientTlsPolicyRequest
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