pub struct SamplingResponse {
pub text: String,
pub metadata: Option<Value>,
}
Expand description
Represents a sampling response to the server
Fields§
§text: String
The generated text
metadata: Option<Value>
Optional metadata about the sampling
Trait Implementations§
Source§impl Clone for SamplingResponse
impl Clone for SamplingResponse
Source§fn clone(&self) -> SamplingResponse
fn clone(&self) -> SamplingResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 SamplingResponse
impl Debug for SamplingResponse
Source§impl<'de> Deserialize<'de> for SamplingResponse
impl<'de> Deserialize<'de> for SamplingResponse
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
Auto Trait Implementations§
impl Freeze for SamplingResponse
impl RefUnwindSafe for SamplingResponse
impl Send for SamplingResponse
impl Sync for SamplingResponse
impl Unpin for SamplingResponse
impl UnwindSafe for SamplingResponse
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