#[non_exhaustive]pub struct CreateServerTlsPolicyRequest {
pub parent: String,
pub server_tls_policy_id: String,
pub server_tls_policy: Option<ServerTlsPolicy>,
/* private fields */
}
Expand description
Request used by the CreateServerTlsPolicy 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: String
Required. The parent resource of the ServerTlsPolicy. Must be in
the format projects/*/locations/{location}
.
server_tls_policy_id: String
Required. Short name of the ServerTlsPolicy 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. “server_mtls_policy”.
server_tls_policy: Option<ServerTlsPolicy>
Required. ServerTlsPolicy resource to be created.
Implementations§
Source§impl CreateServerTlsPolicyRequest
impl CreateServerTlsPolicyRequest
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_server_tls_policy_id<T: Into<String>>(self, v: T) -> Self
pub fn set_server_tls_policy_id<T: Into<String>>(self, v: T) -> Self
Sets the value of server_tls_policy_id.
Sourcepub fn set_server_tls_policy<T>(self, v: T) -> Selfwhere
T: Into<ServerTlsPolicy>,
pub fn set_server_tls_policy<T>(self, v: T) -> Selfwhere
T: Into<ServerTlsPolicy>,
Sets the value of server_tls_policy.
Sourcepub fn set_or_clear_server_tls_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServerTlsPolicy>,
pub fn set_or_clear_server_tls_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServerTlsPolicy>,
Sets or clears the value of server_tls_policy.
Trait Implementations§
Source§impl Clone for CreateServerTlsPolicyRequest
impl Clone for CreateServerTlsPolicyRequest
Source§fn clone(&self) -> CreateServerTlsPolicyRequest
fn clone(&self) -> CreateServerTlsPolicyRequest
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 CreateServerTlsPolicyRequest
impl Debug for CreateServerTlsPolicyRequest
Source§impl Default for CreateServerTlsPolicyRequest
impl Default for CreateServerTlsPolicyRequest
Source§fn default() -> CreateServerTlsPolicyRequest
fn default() -> CreateServerTlsPolicyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateServerTlsPolicyRequest
impl PartialEq for CreateServerTlsPolicyRequest
Source§fn eq(&self, other: &CreateServerTlsPolicyRequest) -> bool
fn eq(&self, other: &CreateServerTlsPolicyRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateServerTlsPolicyRequest
Auto Trait Implementations§
impl Freeze for CreateServerTlsPolicyRequest
impl RefUnwindSafe for CreateServerTlsPolicyRequest
impl Send for CreateServerTlsPolicyRequest
impl Sync for CreateServerTlsPolicyRequest
impl Unpin for CreateServerTlsPolicyRequest
impl UnwindSafe for CreateServerTlsPolicyRequest
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