pub struct LogPattern {
pub pattern: Option<String>,
pub pattern_name: Option<String>,
pub pattern_set_name: Option<String>,
pub rank: Option<i64>,
}
Expand description
An object that defines the log patterns that belongs to a LogPatternSet
.
Fields§
§pattern: Option<String>
A regular expression that defines the log pattern. A log pattern can contains at many as 50 characters, and it cannot be empty.
pattern_name: Option<String>
The name of the log pattern. A log pattern name can contains at many as 50 characters, and it cannot be empty. The characters can be Unicode letters, digits or one of the following symbols: period, dash, underscore.
pattern_set_name: Option<String>
The name of the log pattern. A log pattern name can contains at many as 30 characters, and it cannot be empty. The characters can be Unicode letters, digits or one of the following symbols: period, dash, underscore.
rank: Option<i64>
Rank of the log pattern.
Trait Implementations§
Source§impl Clone for LogPattern
impl Clone for LogPattern
Source§fn clone(&self) -> LogPattern
fn clone(&self) -> LogPattern
Returns a copy 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 LogPattern
impl Debug for LogPattern
Source§impl Default for LogPattern
impl Default for LogPattern
Source§fn default() -> LogPattern
fn default() -> LogPattern
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogPattern
impl<'de> Deserialize<'de> for LogPattern
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 LogPattern
impl PartialEq for LogPattern
impl StructuralPartialEq for LogPattern
Auto Trait Implementations§
impl Freeze for LogPattern
impl RefUnwindSafe for LogPattern
impl Send for LogPattern
impl Sync for LogPattern
impl Unpin for LogPattern
impl UnwindSafe for LogPattern
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