pub struct LogEntry {Show 13 fields
pub count: usize,
pub last_update: SystemTime,
pub last_requests: Vec<String>,
pub request_type: String,
pub request_domain: String,
pub full_url: String,
pub status_codes: HashMap<u16, usize>,
pub response_sizes: Vec<u64>,
pub response_times: Vec<f64>,
pub user_agents: HashMap<String, usize>,
pub suspicious_patterns: Vec<String>,
pub is_bot: bool,
pub bot_type: Option<String>,
}Expand description
Запись лога для конкретного IP или URL
Содержит статистическую информацию о запросах, включая количество запросов, последние запросы, типы запросов и дополнительную аналитическую информацию.
Fields§
§count: usize§last_update: SystemTime§last_requests: Vec<String>§request_type: String§request_domain: String§full_url: String§status_codes: HashMap<u16, usize>§response_sizes: Vec<u64>§response_times: Vec<f64>§user_agents: HashMap<String, usize>§suspicious_patterns: Vec<String>§is_bot: bool§bot_type: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
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> 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