pub struct DeltaResponse {
pub role: Option<String>,
pub content: Option<String>,
pub tool_calls: Vec<OpenRouterToolCall>,
pub native_finish_reason: Option<String>,
}Fields§
§role: Option<String>§content: Option<String>§tool_calls: Vec<OpenRouterToolCall>§native_finish_reason: Option<String>Trait Implementations§
Source§impl Debug for DeltaResponse
impl Debug for DeltaResponse
Source§impl<'de> Deserialize<'de> for DeltaResponse
impl<'de> Deserialize<'de> for DeltaResponse
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 DeltaResponse
impl RefUnwindSafe for DeltaResponse
impl Send for DeltaResponse
impl Sync for DeltaResponse
impl Unpin for DeltaResponse
impl UnwindSafe for DeltaResponse
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