pub struct Host {
pub pattern: Vec<HostClause>,
pub params: HostParams,
}
Expand description
Describes the rules to be used for a certain host
Fields§
§pattern: Vec<HostClause>
List of hosts for which params are valid. String is string pattern, bool is whether condition is negated
params: HostParams
Implementations§
Source§impl Host
impl Host
pub fn new(pattern: Vec<HostClause>, params: HostParams) -> Self
Sourcepub fn intersects(&self, host: &str) -> bool
pub fn intersects(&self, host: &str) -> bool
Returns whether host
argument intersects the host clauses
Trait Implementations§
impl Eq for Host
impl StructuralPartialEq for Host
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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