pub struct DeviceBoundSessionUrlRule<'a> { /* private fields */ }Expand description
A device bound session’s inclusion URL rule.
Implementations§
Source§impl<'a> DeviceBoundSessionUrlRule<'a>
impl<'a> DeviceBoundSessionUrlRule<'a>
Sourcepub fn builder(
rule_type: impl Into<Cow<'a, str>>,
host_pattern: impl Into<Cow<'a, str>>,
path_prefix: impl Into<Cow<'a, str>>,
) -> DeviceBoundSessionUrlRuleBuilder<'a>
pub fn builder( rule_type: impl Into<Cow<'a, str>>, host_pattern: impl Into<Cow<'a, str>>, path_prefix: impl Into<Cow<'a, str>>, ) -> DeviceBoundSessionUrlRuleBuilder<'a>
Creates a builder for this type with the required parameters:
rule_type: See comments onnet::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type.host_pattern: See comments onnet::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern.path_prefix: See comments onnet::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix.
Sourcepub fn rule_type(&self) -> &str
pub fn rule_type(&self) -> &str
See comments on ‘net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type’.
Sourcepub fn host_pattern(&self) -> &str
pub fn host_pattern(&self) -> &str
See comments on ‘net::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern’.
Sourcepub fn path_prefix(&self) -> &str
pub fn path_prefix(&self) -> &str
See comments on ‘net::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix’.
Trait Implementations§
Source§impl<'a> Clone for DeviceBoundSessionUrlRule<'a>
impl<'a> Clone for DeviceBoundSessionUrlRule<'a>
Source§fn clone(&self) -> DeviceBoundSessionUrlRule<'a>
fn clone(&self) -> DeviceBoundSessionUrlRule<'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 DeviceBoundSessionUrlRule<'a>
impl<'a> Debug for DeviceBoundSessionUrlRule<'a>
Source§impl<'a> Default for DeviceBoundSessionUrlRule<'a>
impl<'a> Default for DeviceBoundSessionUrlRule<'a>
Source§fn default() -> DeviceBoundSessionUrlRule<'a>
fn default() -> DeviceBoundSessionUrlRule<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for DeviceBoundSessionUrlRule<'a>
impl<'de, 'a> Deserialize<'de> for DeviceBoundSessionUrlRule<'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 DeviceBoundSessionUrlRule<'a>
impl<'a> RefUnwindSafe for DeviceBoundSessionUrlRule<'a>
impl<'a> Send for DeviceBoundSessionUrlRule<'a>
impl<'a> Sync for DeviceBoundSessionUrlRule<'a>
impl<'a> Unpin for DeviceBoundSessionUrlRule<'a>
impl<'a> UnsafeUnpin for DeviceBoundSessionUrlRule<'a>
impl<'a> UnwindSafe for DeviceBoundSessionUrlRule<'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