pub struct ConsoleAPICalledEventParamsBuilder { /* private fields */ }Expand description
Builder for ConsoleAPICalledEventParams.
Implementations§
Source§impl ConsoleAPICalledEventParamsBuilder
impl ConsoleAPICalledEventParamsBuilder
Sourcepub fn type(&mut self, value: ConsoleApiCalledTypeOption) -> &mut Self
pub fn type(&mut self, value: ConsoleApiCalledTypeOption) -> &mut Self
Type of the call.
Sourcepub fn args(&mut self, value: Vec<RemoteObject>) -> &mut Self
pub fn args(&mut self, value: Vec<RemoteObject>) -> &mut Self
Call arguments.
Sourcepub fn execution_context_id(&mut self, value: ExecutionContextId) -> &mut Self
pub fn execution_context_id(&mut self, value: ExecutionContextId) -> &mut Self
Identifier of the context where the call was made.
Sourcepub fn stack_trace(&mut self, value: Option<StackTrace>) -> &mut Self
pub fn stack_trace(&mut self, value: Option<StackTrace>) -> &mut Self
Stack trace captured when the call was made. The async stack chain is automatically reported for
the following call types: assert, error, trace, warning. For other types the async call
chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.
Sourcepub fn context(&mut self, value: Option<String>) -> &mut Self
pub fn context(&mut self, value: Option<String>) -> &mut Self
Console context descriptor for calls on non-default console context (not console.*): ‘anonymous#unique-logger-id’ for call on unnamed context, ‘name#unique-logger-id’ for call on named context.
Sourcepub fn build(
&self,
) -> Result<ConsoleAPICalledEventParams, ConsoleAPICalledEventParamsBuilderError>
pub fn build( &self, ) -> Result<ConsoleAPICalledEventParams, ConsoleAPICalledEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for ConsoleAPICalledEventParamsBuilder
impl Clone for ConsoleAPICalledEventParamsBuilder
Source§fn clone(&self) -> ConsoleAPICalledEventParamsBuilder
fn clone(&self) -> ConsoleAPICalledEventParamsBuilder
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 ConsoleAPICalledEventParamsBuilder
impl RefUnwindSafe for ConsoleAPICalledEventParamsBuilder
impl Send for ConsoleAPICalledEventParamsBuilder
impl Sync for ConsoleAPICalledEventParamsBuilder
impl Unpin for ConsoleAPICalledEventParamsBuilder
impl UnsafeUnpin for ConsoleAPICalledEventParamsBuilder
impl UnwindSafe for ConsoleAPICalledEventParamsBuilder
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