#[non_exhaustive]pub struct GcpCredentials {
pub service_account_id_tokens: Vec<String>,
/* private fields */
}Expand description
Credentials issued by GCP which are linked to the platform attestation. These will be verified server-side as part of attestaion verification.
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.service_account_id_tokens: Vec<String>Same as id_tokens, but as a string.
Implementations§
Source§impl GcpCredentials
impl GcpCredentials
pub fn new() -> Self
Sourcepub fn set_service_account_id_tokens<T, V>(self, v: T) -> Self
pub fn set_service_account_id_tokens<T, V>(self, v: T) -> Self
Sets the value of service_account_id_tokens.
§Example
ⓘ
let x = GcpCredentials::new().set_service_account_id_tokens(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for GcpCredentials
impl Clone for GcpCredentials
Source§fn clone(&self) -> GcpCredentials
fn clone(&self) -> GcpCredentials
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 GcpCredentials
impl Debug for GcpCredentials
Source§impl Default for GcpCredentials
impl Default for GcpCredentials
Source§fn default() -> GcpCredentials
fn default() -> GcpCredentials
Returns the “default value” for a type. Read more
Source§impl Message for GcpCredentials
impl Message for GcpCredentials
Source§impl PartialEq for GcpCredentials
impl PartialEq for GcpCredentials
impl StructuralPartialEq for GcpCredentials
Auto Trait Implementations§
impl Freeze for GcpCredentials
impl RefUnwindSafe for GcpCredentials
impl Send for GcpCredentials
impl Sync for GcpCredentials
impl Unpin for GcpCredentials
impl UnwindSafe for GcpCredentials
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