Struct cloud_storage::service_account::ServiceAccount
source · [−]pub struct ServiceAccount {
pub type: String,
pub project_id: String,
pub private_key_id: String,
pub private_key: String,
pub client_email: String,
pub client_id: String,
pub auth_uri: String,
pub token_uri: String,
pub auth_provider_x509_cert_url: String,
pub client_x509_cert_url: String,
}Expand description
A deserialized service-account-********.json-file.
Fields
type: StringThe type of authentication, this should always be service_account.
project_id: StringThe name of the current project.
private_key_id: StringA unqiue identifier for the private key.
private_key: StringThe private key in RSA format.
client_email: StringThe email address associated with the service account.
client_id: StringThe unique identifier for this client.
auth_uri: StringThe endpoint where authentication happens.
token_uri: StringThe endpoint where OAuth2 tokens are issued.
auth_provider_x509_cert_url: StringThe url of the cert provider.
client_x509_cert_url: StringThe url of a static file containing metadata for this certificate.
Trait Implementations
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 RefUnwindSafe for ServiceAccount
impl Send for ServiceAccount
impl Sync for ServiceAccount
impl Unpin for ServiceAccount
impl UnwindSafe for ServiceAccount
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more