pub struct ImageAuditLogEntry {
pub timestamp: DateTime<Utc>,
pub provider: String,
pub model: String,
pub image_count: usize,
pub total_image_size: u64,
pub image_hashes: Vec<String>,
pub status: String,
pub error: Option<String>,
pub tokens_used: Option<u32>,
}Expand description
Audit log entry for image analysis requests.
Fields§
§timestamp: DateTime<Utc>Timestamp of the request
provider: StringProvider name
model: StringModel used
image_count: usizeNumber of images analyzed
total_image_size: u64Total image size in bytes
image_hashes: Vec<String>Image hashes (for deduplication tracking)
status: StringRequest status (success, failure, timeout)
error: Option<String>Error message if failed
tokens_used: Option<u32>Tokens used
Implementations§
Source§impl ImageAuditLogEntry
impl ImageAuditLogEntry
Sourcepub fn success(
provider: String,
model: String,
image_count: usize,
total_image_size: u64,
image_hashes: Vec<String>,
tokens_used: u32,
) -> Self
pub fn success( provider: String, model: String, image_count: usize, total_image_size: u64, image_hashes: Vec<String>, tokens_used: u32, ) -> Self
Create a new audit log entry for a successful analysis.
Trait Implementations§
Source§impl Clone for ImageAuditLogEntry
impl Clone for ImageAuditLogEntry
Source§fn clone(&self) -> ImageAuditLogEntry
fn clone(&self) -> ImageAuditLogEntry
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 ImageAuditLogEntry
impl Debug for ImageAuditLogEntry
Source§impl<'de> Deserialize<'de> for ImageAuditLogEntry
impl<'de> Deserialize<'de> for ImageAuditLogEntry
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 ImageAuditLogEntry
impl RefUnwindSafe for ImageAuditLogEntry
impl Send for ImageAuditLogEntry
impl Sync for ImageAuditLogEntry
impl Unpin for ImageAuditLogEntry
impl UnwindSafe for ImageAuditLogEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more