#[non_exhaustive]pub struct ServerVerification {
pub ca_certificate: String,
pub server_certificate_hostname: String,
/* private fields */
}
Expand description
Message represents the option where Datastream will enforce the encryption and authenticate the server identity. ca_certificate must be set if user selects this option.
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.ca_certificate: String
Required. Input only. PEM-encoded server root CA certificate.
server_certificate_hostname: String
Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.
Implementations§
Source§impl ServerVerification
impl ServerVerification
pub fn new() -> Self
Sourcepub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of ca_certificate.
Sourcepub fn set_server_certificate_hostname<T: Into<String>>(self, v: T) -> Self
pub fn set_server_certificate_hostname<T: Into<String>>(self, v: T) -> Self
Sets the value of server_certificate_hostname.
Trait Implementations§
Source§impl Clone for ServerVerification
impl Clone for ServerVerification
Source§fn clone(&self) -> ServerVerification
fn clone(&self) -> ServerVerification
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 ServerVerification
impl Debug for ServerVerification
Source§impl Default for ServerVerification
impl Default for ServerVerification
Source§fn default() -> ServerVerification
fn default() -> ServerVerification
Returns the “default value” for a type. Read more
Source§impl Message for ServerVerification
impl Message for ServerVerification
Source§impl PartialEq for ServerVerification
impl PartialEq for ServerVerification
impl StructuralPartialEq for ServerVerification
Auto Trait Implementations§
impl Freeze for ServerVerification
impl RefUnwindSafe for ServerVerification
impl Send for ServerVerification
impl Sync for ServerVerification
impl Unpin for ServerVerification
impl UnwindSafe for ServerVerification
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