#[non_exhaustive]pub struct GetPublicKeyRequest {
pub name: String,
pub public_key_format: PublicKeyFormat,
/* private fields */
}Expand description
Request message for KeyManagementService.GetPublicKey.
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: StringRequired. The name of the CryptoKeyVersion public key to get.
public_key_format: PublicKeyFormatOptional. The PublicKey format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the public_key field in the requested format. Otherwise, the pem field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms.
Implementations§
Source§impl GetPublicKeyRequest
impl GetPublicKeyRequest
pub fn new() -> Self
Sourcepub fn set_public_key_format<T: Into<PublicKeyFormat>>(self, v: T) -> Self
pub fn set_public_key_format<T: Into<PublicKeyFormat>>(self, v: T) -> Self
Sets the value of public_key_format.
Trait Implementations§
Source§impl Clone for GetPublicKeyRequest
impl Clone for GetPublicKeyRequest
Source§fn clone(&self) -> GetPublicKeyRequest
fn clone(&self) -> GetPublicKeyRequest
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 GetPublicKeyRequest
impl Debug for GetPublicKeyRequest
Source§impl Default for GetPublicKeyRequest
impl Default for GetPublicKeyRequest
Source§fn default() -> GetPublicKeyRequest
fn default() -> GetPublicKeyRequest
Returns the “default value” for a type. Read more
Source§impl Message for GetPublicKeyRequest
impl Message for GetPublicKeyRequest
Source§impl PartialEq for GetPublicKeyRequest
impl PartialEq for GetPublicKeyRequest
impl StructuralPartialEq for GetPublicKeyRequest
Auto Trait Implementations§
impl Freeze for GetPublicKeyRequest
impl RefUnwindSafe for GetPublicKeyRequest
impl Send for GetPublicKeyRequest
impl Sync for GetPublicKeyRequest
impl Unpin for GetPublicKeyRequest
impl UnwindSafe for GetPublicKeyRequest
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