pub enum SpannerCredentials {
ServiceAccountKeyPath {
path: String,
},
ServiceAccountKey {
json: String,
},
ApplicationDefault,
}Expand description
Credentials used to authenticate against Cloud Spanner.
Serialized in the project-wide adjacently-tagged shape:
auth:
type: service_account_key_path
config:
path: /secrets/sa.jsonVariants§
ServiceAccountKeyPath
Load a service-account key from a JSON file on disk.
ServiceAccountKey
Inline service-account key JSON (prefer ${vault:…} / ${env:…}
interpolation over literal keys in config files).
ApplicationDefault
Application Default Credentials: GOOGLE_APPLICATION_CREDENTIALS,
gcloud auth application-default login, or the GCE/GKE metadata
server.
Trait Implementations§
Source§impl Clone for SpannerCredentials
impl Clone for SpannerCredentials
Source§fn clone(&self) -> SpannerCredentials
fn clone(&self) -> SpannerCredentials
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 SpannerCredentials
impl Debug for SpannerCredentials
Source§impl Default for SpannerCredentials
impl Default for SpannerCredentials
Source§fn default() -> SpannerCredentials
fn default() -> SpannerCredentials
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpannerCredentials
impl<'de> Deserialize<'de> for SpannerCredentials
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
Source§impl JsonSchema for SpannerCredentials
impl JsonSchema for SpannerCredentials
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SpannerCredentials
impl RefUnwindSafe for SpannerCredentials
impl Send for SpannerCredentials
impl Sync for SpannerCredentials
impl Unpin for SpannerCredentials
impl UnsafeUnpin for SpannerCredentials
impl UnwindSafe for SpannerCredentials
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request