pub struct Event {
pub timestamp: String,
pub level: Level,
pub kind: Kind,
pub message: String,
pub step: Option<String>,
pub job_id: Option<String>,
pub done: Option<u64>,
pub total: Option<u64>,
pub tokens_in: Option<u64>,
pub tokens_out: Option<u64>,
pub usd: Option<f64>,
}Fields§
§timestamp: String§level: Level§kind: Kind§message: String§step: Option<String>§job_id: Option<String>The job this event belongs to, when it runs as one.
done: Option<u64>§total: Option<u64>§tokens_in: Option<u64>§tokens_out: Option<u64>§usd: Option<f64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Forget for Event
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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