pub struct ChatToClaudeContext {
pub start_usage: Option<Usage>,
}Expand description
Claude needs real initial usage. Without this fact, pending Chat chunks are released only after an actual usage record arrives. The source must supply its actual response model; no model name is guessed.
Fields§
§start_usage: Option<Usage>Trait Implementations§
Source§impl Clone for ChatToClaudeContext
impl Clone for ChatToClaudeContext
Source§impl Debug for ChatToClaudeContext
impl Debug for ChatToClaudeContext
Auto Trait Implementations§
impl Freeze for ChatToClaudeContext
impl RefUnwindSafe for ChatToClaudeContext
impl Send for ChatToClaudeContext
impl Sync for ChatToClaudeContext
impl Unpin for ChatToClaudeContext
impl UnsafeUnpin for ChatToClaudeContext
impl UnwindSafe for ChatToClaudeContext
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