pub struct CredentialBinding {
pub name: String,
pub environment_variable: String,
pub allowed_hosts: Vec<String>,
pub injection_location: InjectionLocation,
pub methods: Vec<String>,
}Expand description
One named credential a workload may use against explicit hosts.
Fields§
§name: StringBinding name handed to the resolver. Scoped by the caller, never a storage identifier.
environment_variable: StringGuest environment variable that receives the placeholder.
allowed_hosts: Vec<String>Exact DNS hosts (lowercase, no wildcard, no scheme or port) the credential may be sent to.
injection_location: InjectionLocationWhere substitution happens.
methods: Vec<String>HTTP methods the binding may be used with. Defaults to every supported method; narrow it for read-only tokens.
Implementations§
Source§impl CredentialBinding
impl CredentialBinding
Sourcepub fn allows_host(&self, host: &str) -> bool
pub fn allows_host(&self, host: &str) -> bool
Whether this binding permits substitution toward host.
Sourcepub fn allows_method(&self, method: &str) -> bool
pub fn allows_method(&self, method: &str) -> bool
Whether this binding permits method.
Trait Implementations§
Source§impl Clone for CredentialBinding
impl Clone for CredentialBinding
Source§impl Debug for CredentialBinding
impl Debug for CredentialBinding
Source§impl<'de> Deserialize<'de> for CredentialBinding
impl<'de> Deserialize<'de> for CredentialBinding
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 CredentialBinding
Source§impl PartialEq for CredentialBinding
impl PartialEq for CredentialBinding
Source§impl Serialize for CredentialBinding
impl Serialize for CredentialBinding
impl StructuralPartialEq for CredentialBinding
Auto Trait Implementations§
impl Freeze for CredentialBinding
impl RefUnwindSafe for CredentialBinding
impl Send for CredentialBinding
impl Sync for CredentialBinding
impl Unpin for CredentialBinding
impl UnsafeUnpin for CredentialBinding
impl UnwindSafe for CredentialBinding
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