pub struct BodyRaw {
pub elapsed_time: Annotated<u64>,
pub method: Annotated<String>,
pub phase: Annotated<NetworkReportPhases>,
pub protocol: Annotated<String>,
pub referrer: Annotated<String>,
pub sampling_fraction: Annotated<f64>,
pub server_ip: Annotated<IpAddr>,
pub status_code: Annotated<i64>,
pub ty: Annotated<String>,
pub other: Object<Value>,
}
Expand description
Generated network error report (NEL).
Fields§
§elapsed_time: Annotated<u64>
The time between the start of the resource fetch and when it was completed or aborted.
method: Annotated<String>
HTTP method.
phase: Annotated<NetworkReportPhases>
If request failed, the phase of its network error. If request succeeded, “application”.
protocol: Annotated<String>
The HTTP protocol and version.
referrer: Annotated<String>
Request’s referrer, as determined by the referrer policy associated with its client.
sampling_fraction: Annotated<f64>
The sampling rate.
server_ip: Annotated<IpAddr>
The IP address of the server where the site is hosted.
status_code: Annotated<i64>
HTTP status code.
ty: Annotated<String>
If request failed, the type of its network error. If request succeeded, “ok”.
other: Object<Value>
For forward compatibility.
Trait Implementations§
Source§impl FromObjectRef for BodyRaw
impl FromObjectRef for BodyRaw
Source§fn from_object_ref(__obj: &mut Object<Value>) -> Self
fn from_object_ref(__obj: &mut Object<Value>) -> Self
Creates a meta structure from key value pairs. Read more
Source§impl FromValue for BodyRaw
impl FromValue for BodyRaw
Source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
Source§impl IntoObjectRef for BodyRaw
impl IntoObjectRef for BodyRaw
Source§fn into_object_ref(self, __map: &mut Object<Value>)
fn into_object_ref(self, __map: &mut Object<Value>)
Boxes the meta structure back into an object of values. Read more
Source§impl IntoValue for BodyRaw
impl IntoValue for BodyRaw
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
Source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
Source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
impl StructuralPartialEq for BodyRaw
Auto Trait Implementations§
impl Freeze for BodyRaw
impl RefUnwindSafe for BodyRaw
impl Send for BodyRaw
impl Sync for BodyRaw
impl Unpin for BodyRaw
impl UnwindSafe for BodyRaw
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