pub enum HostPattern {
Exact(String),
Regex {
pattern: String,
re: Regex,
},
}Expand description
Pattern for matching a host in connection allow/deny rules.
Variants§
Exact(String)
Exact host string match (e.g. example.com).
Regex
Regex match over the host (e.g. ^api\.example\.com$). Pattern string is kept for serialization.
Implementations§
Trait Implementations§
Source§impl Clone for HostPattern
impl Clone for HostPattern
Source§fn clone(&self) -> HostPattern
fn clone(&self) -> HostPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HostPattern
impl RefUnwindSafe for HostPattern
impl Send for HostPattern
impl Sync for HostPattern
impl Unpin for HostPattern
impl UnsafeUnpin for HostPattern
impl UnwindSafe for HostPattern
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