#[non_exhaustive]pub struct CallMetadata {
pub sent_request_id: String,
pub request_id: String,
pub status: Option<u16>,
pub schema_version: Option<String>,
pub server_timing_ms: Option<f64>,
pub rate_limit: Option<RateLimit>,
pub attempts: u64,
pub hint: Option<String>,
pub hint_code: Option<String>,
}Expand description
Metadata from the final HTTP attempt, including incomplete responses.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sent_request_id: String§request_id: StringThe echoed request ID, or the sent ID when no echo is present.
status: Option<u16>None when no response headers arrived.
schema_version: Option<String>§server_timing_ms: Option<f64>Duration of the app metric in Server-Timing, in milliseconds.
rate_limit: Option<RateLimit>None when any rate-limit header is missing or invalid.
attempts: u64All HTTP attempts, including retries and 429 pacing rounds.
hint: Option<String>§hint_code: Option<String>Trait Implementations§
Source§impl Clone for CallMetadata
impl Clone for CallMetadata
Auto Trait Implementations§
impl Forget for CallMetadata
impl Freeze for CallMetadata
impl Move for CallMetadata
impl RefUnwindSafe for CallMetadata
impl Send for CallMetadata
impl Sync for CallMetadata
impl Unpin for CallMetadata
impl UnsafeUnpin for CallMetadata
impl UnwindSafe for CallMetadata
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