Struct relay_event_schema::protocol::BodyRaw
source · 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 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)