pub struct ServiceAccountKey {
pub client_email: String,
pub private_key: String,
pub project_id: String,
pub private_key_id: String,
}Expand description
A parsed Firebase/GCP service account key file (JSON).
The Debug implementation deliberately redacts Self::private_key so
that logging or panicking with a ServiceAccountKey in scope cannot leak
the private key into logs, error reports, or terminal output.
Fields§
§client_email: StringThe service account’s client email address.
private_key: StringThe PEM-encoded RSA private key used to sign tokens.
project_id: StringThe GCP project ID this service account belongs to.
private_key_id: StringUnique key identifier assigned by Google, used as the JWT kid header.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceAccountKey
impl Clone for ServiceAccountKey
Source§fn clone(&self) -> ServiceAccountKey
fn clone(&self) -> ServiceAccountKey
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 ServiceAccountKey
impl Debug for ServiceAccountKey
Source§impl<'de> Deserialize<'de> for ServiceAccountKey
impl<'de> Deserialize<'de> for ServiceAccountKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServiceAccountKey
impl RefUnwindSafe for ServiceAccountKey
impl Send for ServiceAccountKey
impl Sync for ServiceAccountKey
impl Unpin for ServiceAccountKey
impl UnsafeUnpin for ServiceAccountKey
impl UnwindSafe for ServiceAccountKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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