pub struct AccessLog {
pub path: PathBuf,
pub format_name: Option<String>,
pub options: HashMap<String, String>,
pub context: LogContext,
}Expand description
Represents an NGINX access_log directive
Fields§
§path: PathBufPath to the log file
format_name: Option<String>Format name (e.g., “combined”, “main”)
options: HashMap<String, String>Additional options (buffer, gzip, etc.)
context: LogContextContext where this log was defined
Implementations§
Source§impl AccessLog
impl AccessLog
Sourcepub fn with_format(self, format: impl Into<String>) -> Self
pub fn with_format(self, format: impl Into<String>) -> Self
Set the format name
Sourcepub fn with_context(self, context: LogContext) -> Self
pub fn with_context(self, context: LogContext) -> Self
Set the context
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AccessLog
impl<'de> Deserialize<'de> for AccessLog
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
impl StructuralPartialEq for AccessLog
Auto Trait Implementations§
impl Freeze for AccessLog
impl RefUnwindSafe for AccessLog
impl Send for AccessLog
impl Sync for AccessLog
impl Unpin for AccessLog
impl UnwindSafe for AccessLog
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> 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