#[non_exhaustive]pub struct LsRules<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub rules: Option<Vec<Rule<'a>>>,
pub denied_remote_domains: Option<Vec<&'a str>>,
pub denied_remote_hosts: Option<Vec<&'a str>>,
pub denied_remote_addresses: Option<Vec<&'a str>>,
pub denied_remote_notes: Option<&'a str>,
}
Expand description
The container for all data.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<&'a str>
§description: Option<&'a str>
§rules: Option<Vec<Rule<'a>>>
§denied_remote_domains: Option<Vec<&'a str>>
§denied_remote_hosts: Option<Vec<&'a str>>
§denied_remote_addresses: Option<Vec<&'a str>>
§denied_remote_notes: Option<&'a str>
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for LsRules<'a>
impl<'de: 'a, 'a> Deserialize<'de> for LsRules<'a>
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<'a> PartialEq for LsRules<'a>
impl<'a> PartialEq for LsRules<'a>
impl<'a> StructuralPartialEq for LsRules<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LsRules<'a>
impl<'a> Send for LsRules<'a>
impl<'a> Sync for LsRules<'a>
impl<'a> Unpin for LsRules<'a>
impl<'a> UnwindSafe for LsRules<'a>
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