Struct relay_filter::csp::SchemeDomainPort
source · pub struct SchemeDomainPort {
pub scheme: Option<String>,
pub domain: Option<String>,
pub port: Option<String>,
}
Expand description
A pattern used to match allowed paths.
Scheme, domain and port are extracted from an url, they may be either a string (to be matched exactly, case insensitive) or None (matches anything in the respective position).
Fields§
§scheme: Option<String>
The scheme of the url.
domain: Option<String>
The domain of the url.
port: Option<String>
The port of the url.
Trait Implementations§
source§impl From<&str> for SchemeDomainPort
impl From<&str> for SchemeDomainPort
source§fn from(url: &str) -> SchemeDomainPort
fn from(url: &str) -> SchemeDomainPort
parse a string into a SchemaDomainPort pattern
source§impl Hash for SchemeDomainPort
impl Hash for SchemeDomainPort
source§impl PartialEq for SchemeDomainPort
impl PartialEq for SchemeDomainPort
impl Eq for SchemeDomainPort
impl StructuralPartialEq for SchemeDomainPort
Auto Trait Implementations§
impl Freeze for SchemeDomainPort
impl RefUnwindSafe for SchemeDomainPort
impl Send for SchemeDomainPort
impl Sync for SchemeDomainPort
impl Unpin for SchemeDomainPort
impl UnwindSafe for SchemeDomainPort
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.