#[non_exhaustive]pub struct ExternalAccountKey {
pub name: String,
pub key_id: String,
pub b64_mac_key: Bytes,
/* private fields */
}Expand description
A representation of an ExternalAccountKey used for external account binding within ACME.
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.name: StringOutput only. Resource name. projects/{project}/locations/{location}/externalAccountKeys/{key_id}
key_id: StringOutput only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created
b64_mac_key: BytesOutput only. Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created
Implementations§
Source§impl ExternalAccountKey
impl ExternalAccountKey
pub fn new() -> Self
Sourcepub fn set_key_id<T: Into<String>>(self, v: T) -> Self
pub fn set_key_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_b64_mac_key<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_b64_mac_key<T: Into<Bytes>>(self, v: T) -> Self
Sets the value of b64_mac_key.
§Example
ⓘ
let x = ExternalAccountKey::new().set_b64_mac_key(bytes::Bytes::from_static(b"example"));Trait Implementations§
Source§impl Clone for ExternalAccountKey
impl Clone for ExternalAccountKey
Source§fn clone(&self) -> ExternalAccountKey
fn clone(&self) -> ExternalAccountKey
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 ExternalAccountKey
impl Debug for ExternalAccountKey
Source§impl Default for ExternalAccountKey
impl Default for ExternalAccountKey
Source§fn default() -> ExternalAccountKey
fn default() -> ExternalAccountKey
Returns the “default value” for a type. Read more
Source§impl Message for ExternalAccountKey
impl Message for ExternalAccountKey
Source§impl PartialEq for ExternalAccountKey
impl PartialEq for ExternalAccountKey
impl StructuralPartialEq for ExternalAccountKey
Auto Trait Implementations§
impl !Freeze for ExternalAccountKey
impl RefUnwindSafe for ExternalAccountKey
impl Send for ExternalAccountKey
impl Sync for ExternalAccountKey
impl Unpin for ExternalAccountKey
impl UnsafeUnpin for ExternalAccountKey
impl UnwindSafe for ExternalAccountKey
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