#[non_exhaustive]pub struct GoogleCdnKey {
pub private_key: Bytes,
pub key_name: String,
/* private fields */
}Expand description
Configuration for a Google Cloud CDN key.
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.private_key: BytesInput only. Secret for this Google Cloud CDN key.
key_name: StringThe public name of the Google Cloud CDN key.
Implementations§
Source§impl GoogleCdnKey
impl GoogleCdnKey
Sourcepub fn set_private_key<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_private_key<T: Into<Bytes>>(self, v: T) -> Self
Sets the value of private_key.
§Example
ⓘ
let x = GoogleCdnKey::new().set_private_key(bytes::Bytes::from_static(b"example"));Trait Implementations§
Source§impl Clone for GoogleCdnKey
impl Clone for GoogleCdnKey
Source§fn clone(&self) -> GoogleCdnKey
fn clone(&self) -> GoogleCdnKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GoogleCdnKey
impl Debug for GoogleCdnKey
Source§impl Default for GoogleCdnKey
impl Default for GoogleCdnKey
Source§fn default() -> GoogleCdnKey
fn default() -> GoogleCdnKey
Returns the “default value” for a type. Read more
Source§impl Message for GoogleCdnKey
impl Message for GoogleCdnKey
Source§impl PartialEq for GoogleCdnKey
impl PartialEq for GoogleCdnKey
Source§fn eq(&self, other: &GoogleCdnKey) -> bool
fn eq(&self, other: &GoogleCdnKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GoogleCdnKey
Auto Trait Implementations§
impl !Freeze for GoogleCdnKey
impl RefUnwindSafe for GoogleCdnKey
impl Send for GoogleCdnKey
impl Sync for GoogleCdnKey
impl Unpin for GoogleCdnKey
impl UnsafeUnpin for GoogleCdnKey
impl UnwindSafe for GoogleCdnKey
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