pub struct FixtureResponse {
pub text: String,
pub parsed_json: Option<Value>,
pub model: Option<String>,
pub usage: Option<TokenUsage>,
}Expand description
Response payload pinned by a fixture.
Fields§
§text: StringThe reply text returned to the caller.
parsed_json: Option<Value>Optional structured form when the original call asked for JSON.
model: Option<String>Model the fixture claims emitted the reply (defaults to the request’s model on absence — most fixtures echo the requested model).
usage: Option<TokenUsage>Token-usage echo, optional.
Trait Implementations§
Source§impl Clone for FixtureResponse
impl Clone for FixtureResponse
Source§fn clone(&self) -> FixtureResponse
fn clone(&self) -> FixtureResponse
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 FixtureResponse
impl Debug for FixtureResponse
Source§impl<'de> Deserialize<'de> for FixtureResponse
impl<'de> Deserialize<'de> for FixtureResponse
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 FixtureResponse
impl RefUnwindSafe for FixtureResponse
impl Send for FixtureResponse
impl Sync for FixtureResponse
impl Unpin for FixtureResponse
impl UnsafeUnpin for FixtureResponse
impl UnwindSafe for FixtureResponse
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