pub struct Initiator {
pub type: InitiatorType,
pub stack: Option<StackTrace>,
pub url: Option<String>,
pub line_number: Option<f64>,
pub column_number: Option<f64>,
pub request_id: Option<RequestId>,
}
Expand description
Information about the request initiator. Initiator
Fields§
§type: InitiatorType
Type of this initiator.
stack: Option<StackTrace>
Initiator JavaScript stack trace, set for Script only.
url: Option<String>
Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.
line_number: Option<f64>
Initiator line number, set for Parser type or for Script type (when script is importing module) (0-based).
column_number: Option<f64>
Initiator column number, set for Parser type or for Script type (when script is importing module) (0-based).
request_id: Option<RequestId>
Set if another request triggered this request (e.g. preflight).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Initiator
impl<'de> Deserialize<'de> for Initiator
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Initiator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Initiator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Initiator
impl Serialize for Initiator
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Initiator
Auto Trait Implementations§
impl Freeze for Initiator
impl RefUnwindSafe for Initiator
impl Send for Initiator
impl Sync for Initiator
impl Unpin for Initiator
impl UnwindSafe for Initiator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more