pub struct DeviceBoundSessionInclusionRules<'a> { /* private fields */ }Expand description
A device bound session’s inclusion rules.
Implementations§
Source§impl<'a> DeviceBoundSessionInclusionRules<'a>
impl<'a> DeviceBoundSessionInclusionRules<'a>
Sourcepub fn builder(
origin: impl Into<Cow<'a, str>>,
include_site: bool,
url_rules: Vec<DeviceBoundSessionUrlRule<'a>>,
) -> DeviceBoundSessionInclusionRulesBuilder<'a>
pub fn builder( origin: impl Into<Cow<'a, str>>, include_site: bool, url_rules: Vec<DeviceBoundSessionUrlRule<'a>>, ) -> DeviceBoundSessionInclusionRulesBuilder<'a>
Creates a builder for this type with the required parameters:
origin: See comments onnet::device_bound_sessions::SessionInclusionRules::origin_.include_site: Whether the whole site is included. See comments onnet::device_bound_sessions::SessionInclusionRules::include_site_for more details; this boolean is true if that value is populated.url_rules: See comments onnet::device_bound_sessions::SessionInclusionRules::url_rules_.
Sourcepub fn origin(&self) -> &str
pub fn origin(&self) -> &str
See comments on ‘net::device_bound_sessions::SessionInclusionRules::origin_’.
Sourcepub fn include_site(&self) -> bool
pub fn include_site(&self) -> bool
Whether the whole site is included. See comments on ‘net::device_bound_sessions::SessionInclusionRules::include_site_’ for more details; this boolean is true if that value is populated.
Sourcepub fn url_rules(&self) -> &[DeviceBoundSessionUrlRule<'a>]
pub fn url_rules(&self) -> &[DeviceBoundSessionUrlRule<'a>]
See comments on ‘net::device_bound_sessions::SessionInclusionRules::url_rules_’.
Trait Implementations§
Source§impl<'a> Clone for DeviceBoundSessionInclusionRules<'a>
impl<'a> Clone for DeviceBoundSessionInclusionRules<'a>
Source§fn clone(&self) -> DeviceBoundSessionInclusionRules<'a>
fn clone(&self) -> DeviceBoundSessionInclusionRules<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DeviceBoundSessionInclusionRules<'a>
impl<'a> Debug for DeviceBoundSessionInclusionRules<'a>
Source§impl<'a> Default for DeviceBoundSessionInclusionRules<'a>
impl<'a> Default for DeviceBoundSessionInclusionRules<'a>
Source§fn default() -> DeviceBoundSessionInclusionRules<'a>
fn default() -> DeviceBoundSessionInclusionRules<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for DeviceBoundSessionInclusionRules<'a>
impl<'de, 'a> Deserialize<'de> for DeviceBoundSessionInclusionRules<'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
Auto Trait Implementations§
impl<'a> Freeze for DeviceBoundSessionInclusionRules<'a>
impl<'a> RefUnwindSafe for DeviceBoundSessionInclusionRules<'a>
impl<'a> Send for DeviceBoundSessionInclusionRules<'a>
impl<'a> Sync for DeviceBoundSessionInclusionRules<'a>
impl<'a> Unpin for DeviceBoundSessionInclusionRules<'a>
impl<'a> UnsafeUnpin for DeviceBoundSessionInclusionRules<'a>
impl<'a> UnwindSafe for DeviceBoundSessionInclusionRules<'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