#[non_exhaustive]pub struct SslPolicyReference {
pub ssl_policy: Option<String>,
/* private fields */
}Available on crate features
target-https-proxies or target-ssl-proxies only.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.ssl_policy: Option<String>URL of the SSL policy resource. Set this to empty string to clear any existing SSL policy associated with the target proxy resource.
Implementations§
Source§impl SslPolicyReference
impl SslPolicyReference
pub fn new() -> Self
Sourcepub fn set_ssl_policy<T>(self, v: T) -> Self
pub fn set_ssl_policy<T>(self, v: T) -> Self
Sets the value of ssl_policy.
§Example
ⓘ
let x = SslPolicyReference::new().set_ssl_policy("example");Sourcepub fn set_or_clear_ssl_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ssl_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of ssl_policy.
§Example
ⓘ
let x = SslPolicyReference::new().set_or_clear_ssl_policy(Some("example"));
let x = SslPolicyReference::new().set_or_clear_ssl_policy(None::<String>);Trait Implementations§
Source§impl Clone for SslPolicyReference
impl Clone for SslPolicyReference
Source§fn clone(&self) -> SslPolicyReference
fn clone(&self) -> SslPolicyReference
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 SslPolicyReference
impl Debug for SslPolicyReference
Source§impl Default for SslPolicyReference
impl Default for SslPolicyReference
Source§fn default() -> SslPolicyReference
fn default() -> SslPolicyReference
Returns the “default value” for a type. Read more
Source§impl Message for SslPolicyReference
impl Message for SslPolicyReference
Source§impl PartialEq for SslPolicyReference
impl PartialEq for SslPolicyReference
impl StructuralPartialEq for SslPolicyReference
Auto Trait Implementations§
impl Freeze for SslPolicyReference
impl RefUnwindSafe for SslPolicyReference
impl Send for SslPolicyReference
impl Sync for SslPolicyReference
impl Unpin for SslPolicyReference
impl UnwindSafe for SslPolicyReference
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