pub enum LogStream {
Stdout,
Stderr,
System,
}Expand description
Output stream for a log line.
§Examples
use ironflow_store::entities::LogStream;
let stream: LogStream = "stdout".parse().unwrap();
assert_eq!(stream.as_str(), "stdout");JSON schema
{
"description": "Output stream for a log line.\n\n# Examples\n\n```\nuse ironflow_store::entities::LogStream;\n\nlet stream: LogStream = \"stdout\".parse().unwrap();\nassert_eq!(stream.as_str(), \"stdout\");\n```",
"type": "string",
"enum": [
"stdout",
"stderr",
"system"
]
}
```ignore
</details>Variants§
Trait Implementations§
impl Copy for LogStream
Source§impl<'de> Deserialize<'de> for LogStream
impl<'de> Deserialize<'de> for LogStream
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 Eq for LogStream
Source§impl Ord for LogStream
impl Ord for LogStream
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for LogStream
impl PartialOrd for LogStream
impl StructuralPartialEq for LogStream
Source§impl TryFrom<&String> for LogStream
impl TryFrom<&String> for LogStream
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for LogStream
impl RefUnwindSafe for LogStream
impl Send for LogStream
impl Sync for LogStream
impl Unpin for LogStream
impl UnsafeUnpin for LogStream
impl UnwindSafe for LogStream
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