pub enum LogDestination {
Http {
url: String,
headers: HashMap<String, String>,
timeout_secs: u64,
},
Syslog {
host: String,
port: u16,
protocol: SyslogProtocol,
facility: u8,
},
File {
path: String,
rotation_size_mb: u64,
max_files: usize,
},
Elasticsearch {
urls: Vec<String>,
index_pattern: String,
username: Option<String>,
password: Option<String>,
},
}
Expand description
Log forwarding destination
Variants§
Trait Implementations§
Source§impl Clone for LogDestination
impl Clone for LogDestination
Source§fn clone(&self) -> LogDestination
fn clone(&self) -> LogDestination
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 LogDestination
impl Debug for LogDestination
Source§impl<'de> Deserialize<'de> for LogDestination
impl<'de> Deserialize<'de> for LogDestination
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 LogDestination
impl RefUnwindSafe for LogDestination
impl Send for LogDestination
impl Sync for LogDestination
impl Unpin for LogDestination
impl UnwindSafe for LogDestination
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