pub enum CloudHostPattern {
Exact {
value: String,
},
Wildcard {
value: String,
},
Any,
}Expand description
Host allowlist pattern for cloud secrets. Twin of HostPattern, with the
domain’s scalar variants normalized to { value } for a uniform union.
Variants§
Exact
Exact hostname match.
Wildcard
Wildcard match (e.g. *.openai.com).
Any
Any host (dangerous — the secret can be exfiltrated).
Trait Implementations§
Source§impl Clone for CloudHostPattern
impl Clone for CloudHostPattern
Source§fn clone(&self) -> CloudHostPattern
fn clone(&self) -> CloudHostPattern
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 CloudHostPattern
impl Debug for CloudHostPattern
Source§impl<'de> Deserialize<'de> for CloudHostPattern
impl<'de> Deserialize<'de> for CloudHostPattern
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 From<CloudHostPattern> for HostPattern
impl From<CloudHostPattern> for HostPattern
Source§fn from(pattern: CloudHostPattern) -> Self
fn from(pattern: CloudHostPattern) -> Self
Converts to this type from the input type.
Source§impl From<HostPattern> for CloudHostPattern
impl From<HostPattern> for CloudHostPattern
Source§fn from(pattern: HostPattern) -> Self
fn from(pattern: HostPattern) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CloudHostPattern
impl RefUnwindSafe for CloudHostPattern
impl Send for CloudHostPattern
impl Sync for CloudHostPattern
impl Unpin for CloudHostPattern
impl UnsafeUnpin for CloudHostPattern
impl UnwindSafe for CloudHostPattern
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