pub struct DeviceBoundSessionEventOccurredEventParamsBuilder { /* private fields */ }Expand description
Builder for DeviceBoundSessionEventOccurredEventParams.
Implementations§
Source§impl DeviceBoundSessionEventOccurredEventParamsBuilder
impl DeviceBoundSessionEventOccurredEventParamsBuilder
Sourcepub fn event_id(&mut self, value: DeviceBoundSessionEventId) -> &mut Self
pub fn event_id(&mut self, value: DeviceBoundSessionEventId) -> &mut Self
A unique identifier for this session event.
Sourcepub fn site(&mut self, value: String) -> &mut Self
pub fn site(&mut self, value: String) -> &mut Self
The site this session event is associated with.
Sourcepub fn succeeded(&mut self, value: bool) -> &mut Self
pub fn succeeded(&mut self, value: bool) -> &mut Self
Whether this event was considered successful.
Sourcepub fn session_id(&mut self, value: Option<String>) -> &mut Self
pub fn session_id(&mut self, value: Option<String>) -> &mut Self
The session ID this event is associated with. May not be populated for failed events.
Sourcepub fn creation_event_details(
&mut self,
value: Option<CreationEventDetails>,
) -> &mut Self
pub fn creation_event_details( &mut self, value: Option<CreationEventDetails>, ) -> &mut Self
The below are the different session event type details. Exactly one is populated.
pub fn refresh_event_details( &mut self, value: Option<RefreshEventDetails>, ) -> &mut Self
pub fn termination_event_details( &mut self, value: Option<TerminationEventDetails>, ) -> &mut Self
pub fn challenge_event_details( &mut self, value: Option<ChallengeEventDetails>, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<DeviceBoundSessionEventOccurredEventParams, DeviceBoundSessionEventOccurredEventParamsBuilderError>
pub fn build( &self, ) -> Result<DeviceBoundSessionEventOccurredEventParams, DeviceBoundSessionEventOccurredEventParamsBuilderError>
Builds a new DeviceBoundSessionEventOccurredEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for DeviceBoundSessionEventOccurredEventParamsBuilder
impl Clone for DeviceBoundSessionEventOccurredEventParamsBuilder
Source§fn clone(&self) -> DeviceBoundSessionEventOccurredEventParamsBuilder
fn clone(&self) -> DeviceBoundSessionEventOccurredEventParamsBuilder
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 DeviceBoundSessionEventOccurredEventParamsBuilder
impl RefUnwindSafe for DeviceBoundSessionEventOccurredEventParamsBuilder
impl Send for DeviceBoundSessionEventOccurredEventParamsBuilder
impl Sync for DeviceBoundSessionEventOccurredEventParamsBuilder
impl Unpin for DeviceBoundSessionEventOccurredEventParamsBuilder
impl UnsafeUnpin for DeviceBoundSessionEventOccurredEventParamsBuilder
impl UnwindSafe for DeviceBoundSessionEventOccurredEventParamsBuilder
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