#[non_exhaustive]pub struct TestGridSessionActionBuilder { /* private fields */ }Expand description
A builder for TestGridSessionAction.
Implementations§
source§impl TestGridSessionActionBuilder
impl TestGridSessionActionBuilder
sourcepub fn set_action(self, input: Option<String>) -> Self
pub fn set_action(self, input: Option<String>) -> Self
The action taken by the session.
sourcepub fn get_action(&self) -> &Option<String>
pub fn get_action(&self) -> &Option<String>
The action taken by the session.
sourcepub fn set_started(self, input: Option<DateTime>) -> Self
pub fn set_started(self, input: Option<DateTime>) -> Self
The time that the session invoked the action.
sourcepub fn get_started(&self) -> &Option<DateTime>
pub fn get_started(&self) -> &Option<DateTime>
The time that the session invoked the action.
sourcepub fn duration(self, input: i64) -> Self
pub fn duration(self, input: i64) -> Self
The time, in milliseconds, that the action took to complete in the browser.
sourcepub fn set_duration(self, input: Option<i64>) -> Self
pub fn set_duration(self, input: Option<i64>) -> Self
The time, in milliseconds, that the action took to complete in the browser.
sourcepub fn get_duration(&self) -> &Option<i64>
pub fn get_duration(&self) -> &Option<i64>
The time, in milliseconds, that the action took to complete in the browser.
sourcepub fn status_code(self, input: impl Into<String>) -> Self
pub fn status_code(self, input: impl Into<String>) -> Self
HTTP status code returned to the browser when the action was taken.
sourcepub fn set_status_code(self, input: Option<String>) -> Self
pub fn set_status_code(self, input: Option<String>) -> Self
HTTP status code returned to the browser when the action was taken.
sourcepub fn get_status_code(&self) -> &Option<String>
pub fn get_status_code(&self) -> &Option<String>
HTTP status code returned to the browser when the action was taken.
sourcepub fn request_method(self, input: impl Into<String>) -> Self
pub fn request_method(self, input: impl Into<String>) -> Self
HTTP method that the browser used to make the request.
sourcepub fn set_request_method(self, input: Option<String>) -> Self
pub fn set_request_method(self, input: Option<String>) -> Self
HTTP method that the browser used to make the request.
sourcepub fn get_request_method(&self) -> &Option<String>
pub fn get_request_method(&self) -> &Option<String>
HTTP method that the browser used to make the request.
sourcepub fn build(self) -> TestGridSessionAction
pub fn build(self) -> TestGridSessionAction
Consumes the builder and constructs a TestGridSessionAction.
Trait Implementations§
source§impl Clone for TestGridSessionActionBuilder
impl Clone for TestGridSessionActionBuilder
source§fn clone(&self) -> TestGridSessionActionBuilder
fn clone(&self) -> TestGridSessionActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TestGridSessionActionBuilder
impl Debug for TestGridSessionActionBuilder
source§impl Default for TestGridSessionActionBuilder
impl Default for TestGridSessionActionBuilder
source§fn default() -> TestGridSessionActionBuilder
fn default() -> TestGridSessionActionBuilder
source§impl PartialEq for TestGridSessionActionBuilder
impl PartialEq for TestGridSessionActionBuilder
source§fn eq(&self, other: &TestGridSessionActionBuilder) -> bool
fn eq(&self, other: &TestGridSessionActionBuilder) -> bool
self and other values to be equal, and is used
by ==.