EndpointAuthentication
Rust struct goodmem::models::EndpointAuthentication: declaration, fields or variants, and implementations.
Struct EndpointAuthentication
goodmem::models::EndpointAuthentication
Structured credential payload describing how GoodMem should authenticate with an upstream provider.
pub struct EndpointAuthentication {
pub kind: CredentialKind,
pub api_key: Option<Box<ApiKeyAuth>>,
pub gcp_adc: Option<Box<GcpAdcAuth>>,
pub labels: Option<BTreeMap<String, String>>,
}Referenced types: ApiKeyAuth, CredentialKind, GcpAdcAuth.
Fields
kind
pub kind: CredentialKind
Selected credential strategy
Wire name: kind.
api_key
pub api_key: Option<Box<ApiKeyAuth>>
Configuration when kind is CREDENTIAL_KIND_API_KEY
Wire name: apiKey.
gcp_adc
pub gcp_adc: Option<Box<GcpAdcAuth>>
Configuration when kind is CREDENTIAL_KIND_GCP_ADC
Wire name: gcpAdc.
labels
pub labels: Option<BTreeMap<String, String>>
Optional annotations to aid operators (e.g., "owner=vertex")
Wire name: labels.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
api_key
pub fn api_key(key: impl Into<String>) -> Self
Construct API-key credentials. Debug output redacts the key.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for EndpointAuthenticationimpl std::fmt::Debug for EndpointAuthentication