pub struct DnsRule {
pub domain: String,
pub target: SocketAddr,
pub https: bool,
}Expand description
A single DNS routing rule mapping a domain to a target.
Fields§
§domain: String§target: SocketAddr§https: boolWhether SideDNS should terminate TLS for this domain and proxy HTTPS.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DnsRule
impl<'de> Deserialize<'de> for DnsRule
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 DnsRule
impl StructuralPartialEq for DnsRule
Auto Trait Implementations§
impl Freeze for DnsRule
impl RefUnwindSafe for DnsRule
impl Send for DnsRule
impl Sync for DnsRule
impl Unpin for DnsRule
impl UnsafeUnpin for DnsRule
impl UnwindSafe for DnsRule
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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