pub struct RequestLogEntry {
pub id: Uuid,
pub started_at: DateTime<Utc>,
pub key_id: Option<Uuid>,
pub profile_id: Option<Uuid>,
pub provider: ProviderKind,
pub model: String,
pub endpoint: String,
pub status_code: Option<u16>,
pub duration_ms: u64,
pub usage: TokenUsage,
pub error_message: Option<String>,
}Fields§
§id: Uuid§started_at: DateTime<Utc>§key_id: Option<Uuid>§profile_id: Option<Uuid>§provider: ProviderKind§model: String§endpoint: String§status_code: Option<u16>§duration_ms: u64§usage: TokenUsage§error_message: Option<String>Trait Implementations§
Source§impl Clone for RequestLogEntry
impl Clone for RequestLogEntry
Source§fn clone(&self) -> RequestLogEntry
fn clone(&self) -> RequestLogEntry
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 RequestLogEntry
impl Debug for RequestLogEntry
Source§impl<'de> Deserialize<'de> for RequestLogEntry
impl<'de> Deserialize<'de> for RequestLogEntry
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
Source§impl PartialEq for RequestLogEntry
impl PartialEq for RequestLogEntry
Source§impl Serialize for RequestLogEntry
impl Serialize for RequestLogEntry
impl Eq for RequestLogEntry
impl StructuralPartialEq for RequestLogEntry
Auto Trait Implementations§
impl Freeze for RequestLogEntry
impl RefUnwindSafe for RequestLogEntry
impl Send for RequestLogEntry
impl Sync for RequestLogEntry
impl Unpin for RequestLogEntry
impl UnsafeUnpin for RequestLogEntry
impl UnwindSafe for RequestLogEntry
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