pub struct ModelResponseInfo { /* private fields */ }Expand description
Metadata reported when a normalized provider response starts.
Implementations§
Source§impl ModelResponseInfo
impl ModelResponseInfo
Sourcepub fn with_response_id(self, response_id: ProviderResponseId) -> Self
pub fn with_response_id(self, response_id: ProviderResponseId) -> Self
Adds an opaque provider response ID.
Sourcepub fn with_response_model(self, response_model: ModelId) -> Self
pub fn with_response_model(self, response_model: ModelId) -> Self
Adds the concrete response model when it differs or is informative.
Sourcepub fn with_metadata(self, metadata: ProtocolMetadata) -> Self
pub fn with_metadata(self, metadata: ProtocolMetadata) -> Self
Adds bounded namespaced response metadata.
Sourcepub const fn response_id(&self) -> Option<&ProviderResponseId>
pub const fn response_id(&self) -> Option<&ProviderResponseId>
Returns the provider response ID.
Sourcepub const fn response_model(&self) -> Option<&ModelId>
pub const fn response_model(&self) -> Option<&ModelId>
Returns the concrete response model.
Sourcepub const fn metadata(&self) -> &ProtocolMetadata
pub const fn metadata(&self) -> &ProtocolMetadata
Returns bounded response metadata.
Trait Implementations§
Source§impl Clone for ModelResponseInfo
impl Clone for ModelResponseInfo
Source§fn clone(&self) -> ModelResponseInfo
fn clone(&self) -> ModelResponseInfo
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 ModelResponseInfo
impl Debug for ModelResponseInfo
Source§impl Default for ModelResponseInfo
impl Default for ModelResponseInfo
Source§fn default() -> ModelResponseInfo
fn default() -> ModelResponseInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModelResponseInfo
impl PartialEq for ModelResponseInfo
impl StructuralPartialEq for ModelResponseInfo
Auto Trait Implementations§
impl Freeze for ModelResponseInfo
impl RefUnwindSafe for ModelResponseInfo
impl Send for ModelResponseInfo
impl Sync for ModelResponseInfo
impl Unpin for ModelResponseInfo
impl UnsafeUnpin for ModelResponseInfo
impl UnwindSafe for ModelResponseInfo
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