pub struct DeviceBoundSessionInclusionRulesBuilder { /* private fields */ }Expand description
Builder for DeviceBoundSessionInclusionRules.
Implementations§
Source§impl DeviceBoundSessionInclusionRulesBuilder
impl DeviceBoundSessionInclusionRulesBuilder
Sourcepub fn origin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn origin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
See comments on net::device_bound_sessions::SessionInclusionRules::origin_.
Sourcepub fn include_site<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn include_site<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
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<VALUE: Into<Vec<DeviceBoundSessionUrlRule>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn url_rules<VALUE: Into<Vec<DeviceBoundSessionUrlRule>>>( &mut self, value: VALUE, ) -> &mut Self
See comments on net::device_bound_sessions::SessionInclusionRules::url_rules_.
Sourcepub fn build(
&self,
) -> Result<DeviceBoundSessionInclusionRules, DeviceBoundSessionInclusionRulesBuilderError>
pub fn build( &self, ) -> Result<DeviceBoundSessionInclusionRules, DeviceBoundSessionInclusionRulesBuilderError>
Builds a new DeviceBoundSessionInclusionRules.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for DeviceBoundSessionInclusionRulesBuilder
impl Clone for DeviceBoundSessionInclusionRulesBuilder
Source§fn clone(&self) -> DeviceBoundSessionInclusionRulesBuilder
fn clone(&self) -> DeviceBoundSessionInclusionRulesBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceBoundSessionInclusionRulesBuilder
impl RefUnwindSafe for DeviceBoundSessionInclusionRulesBuilder
impl Send for DeviceBoundSessionInclusionRulesBuilder
impl Sync for DeviceBoundSessionInclusionRulesBuilder
impl Unpin for DeviceBoundSessionInclusionRulesBuilder
impl UnsafeUnpin for DeviceBoundSessionInclusionRulesBuilder
impl UnwindSafe for DeviceBoundSessionInclusionRulesBuilder
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