pub struct RequestMeta {
pub progress_token: Option<ProgressToken>,
pub extra: Option<Map<String, Value>>,
}Expand description
Metadata attachable to a request’s _meta field.
NOTE: For now, we have the Rust representation with progres_token and the extra. We will add convenient accessors.
Fields§
§progress_token: Option<ProgressToken>If specified, the caller is requesting out-of-band progress notifications.
extra: Option<Map<String, Value>>Allow arbitrary other metadata.
Implementations§
Source§impl RequestMeta
Builders
impl RequestMeta
Builders
pub fn with_progress_token(self, token: impl Into<ProgressToken>) -> Self
pub fn with_extra(self, extra: Map<String, Value>) -> Self
pub fn append(self, name: impl Into<String>, value: impl Into<Value>) -> Self
Trait Implementations§
Source§impl Clone for RequestMeta
impl Clone for RequestMeta
Source§fn clone(&self) -> RequestMeta
fn clone(&self) -> RequestMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestMeta
impl Debug for RequestMeta
Source§impl Default for RequestMeta
impl Default for RequestMeta
Source§fn default() -> RequestMeta
fn default() -> RequestMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RequestMeta
impl<'de> Deserialize<'de> for RequestMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RequestMeta
impl PartialEq for RequestMeta
Source§impl Serialize for RequestMeta
impl Serialize for RequestMeta
impl StructuralPartialEq for RequestMeta
Auto Trait Implementations§
impl Freeze for RequestMeta
impl RefUnwindSafe for RequestMeta
impl Send for RequestMeta
impl Sync for RequestMeta
impl Unpin for RequestMeta
impl UnsafeUnpin for RequestMeta
impl UnwindSafe for RequestMeta
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