pub struct RequestOptions {
pub request_id: Option<String>,
pub kind: Option<String>,
}Expand description
Re-export of tailtriage-core, always available at the crate root.
This crate is the recommended default entry point: start with core APIs here,
then enable optional integration namespaces via feature flags as needed.
Optional request start settings used by crate::Tailtriage::begin_request_with.
When request_id is not provided, a request ID is generated automatically.
RequestOptions configures start metadata only. It does not change request
completion semantics: each request must still be finished exactly once.
Fields§
§request_id: Option<String>Optional caller-provided request ID used for request correlation.
kind: Option<String>Optional semantic request kind (for example http or job).
Implementations§
Source§impl RequestOptions
impl RequestOptions
Sourcepub fn new() -> RequestOptions
pub fn new() -> RequestOptions
Creates default request options with autogenerated request IDs.
Sourcepub fn request_id(self, request_id: impl Into<String>) -> RequestOptions
pub fn request_id(self, request_id: impl Into<String>) -> RequestOptions
Sets an explicit request ID for the next request context.
Sourcepub fn kind(self, kind: impl Into<String>) -> RequestOptions
pub fn kind(self, kind: impl Into<String>) -> RequestOptions
Sets an optional semantic kind recorded on completion.
Trait Implementations§
Source§impl Clone for RequestOptions
impl Clone for RequestOptions
Source§fn clone(&self) -> RequestOptions
fn clone(&self) -> RequestOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestOptions
impl Debug for RequestOptions
Source§impl Default for RequestOptions
impl Default for RequestOptions
Source§fn default() -> RequestOptions
fn default() -> RequestOptions
Source§impl PartialEq for RequestOptions
impl PartialEq for RequestOptions
Source§fn eq(&self, other: &RequestOptions) -> bool
fn eq(&self, other: &RequestOptions) -> bool
self and other values to be equal, and is used by ==.impl Eq for RequestOptions
impl StructuralPartialEq for RequestOptions
Auto Trait Implementations§
impl Freeze for RequestOptions
impl RefUnwindSafe for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnsafeUnpin for RequestOptions
impl UnwindSafe for RequestOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.