#[non_exhaustive]pub struct SignedUrlKey {
pub key_name: Option<String>,
pub key_value: Option<String>,
/* private fields */
}Available on crate features
backend-buckets or backend-services only.Expand description
Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs
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.key_name: Option<String>Name of the key. The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.
key_value: Option<String>128-bit key value used for signing the URL. The key value must be a validRFC 4648 Section 5 base64url encoded string.
Implementations§
Source§impl SignedUrlKey
impl SignedUrlKey
pub fn new() -> Self
Sourcepub fn set_key_name<T>(self, v: T) -> Self
pub fn set_key_name<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_key_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_key_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_key_value<T>(self, v: T) -> Self
pub fn set_key_value<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SignedUrlKey
impl Clone for SignedUrlKey
Source§fn clone(&self) -> SignedUrlKey
fn clone(&self) -> SignedUrlKey
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 SignedUrlKey
impl Debug for SignedUrlKey
Source§impl Default for SignedUrlKey
impl Default for SignedUrlKey
Source§fn default() -> SignedUrlKey
fn default() -> SignedUrlKey
Returns the “default value” for a type. Read more
Source§impl Message for SignedUrlKey
impl Message for SignedUrlKey
Source§impl PartialEq for SignedUrlKey
impl PartialEq for SignedUrlKey
impl StructuralPartialEq for SignedUrlKey
Auto Trait Implementations§
impl Freeze for SignedUrlKey
impl RefUnwindSafe for SignedUrlKey
impl Send for SignedUrlKey
impl Sync for SignedUrlKey
impl Unpin for SignedUrlKey
impl UnwindSafe for SignedUrlKey
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