Skip to main content

LogEntry

Struct LogEntry 

Source
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§

Source§

impl Debug for LogEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.