pub struct ProviderCapability {
pub provider_id: ProviderId,
pub provider_name: String,
pub probe_transport: ProviderProbeTransport,
pub quota_source: ProviderQuotaSource,
pub credential_source: ProviderCredentialSource,
pub submits_message: bool,
pub may_affect_quota_or_billing: bool,
pub default_cache_ttl_seconds: u64,
pub probe_impact: String,
}Expand description
Stable capability description for one supported provider.
Fields§
§provider_id: ProviderIdStable provider identifier.
provider_name: StringHuman-readable provider name.
probe_transport: ProviderProbeTransportTransport used to obtain quota data.
quota_source: ProviderQuotaSourceMachine-readable quota source.
credential_source: ProviderCredentialSourceLocal credential source read by the probe.
submits_message: boolWhether a quota probe submits a message to the provider.
may_affect_quota_or_billing: boolWhether a quota probe may affect provider quota or billing.
default_cache_ttl_seconds: u64Default successful-result cache lifetime.
probe_impact: StringConcise human-readable probe impact.
Trait Implementations§
Source§impl Clone for ProviderCapability
impl Clone for ProviderCapability
Source§impl Debug for ProviderCapability
impl Debug for ProviderCapability
Source§impl<'de> Deserialize<'de> for ProviderCapability
impl<'de> Deserialize<'de> for ProviderCapability
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
impl Eq for ProviderCapability
Source§impl PartialEq for ProviderCapability
impl PartialEq for ProviderCapability
Source§impl Serialize for ProviderCapability
impl Serialize for ProviderCapability
impl StructuralPartialEq for ProviderCapability
Auto Trait Implementations§
impl Freeze for ProviderCapability
impl RefUnwindSafe for ProviderCapability
impl Send for ProviderCapability
impl Sync for ProviderCapability
impl Unpin for ProviderCapability
impl UnsafeUnpin for ProviderCapability
impl UnwindSafe for ProviderCapability
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.