pub enum ParserType {
AtCommand,
JsonLines,
ShellPrompt,
Raw,
Nmea,
ModbusAscii,
}Expand description
Supported parser types.
Variants§
AtCommand
Parse AT command responses and URCs.
JsonLines
Parse each frame as a JSON object.
ShellPrompt
Detect shell prompt patterns.
Raw
No parsing — frames are returned as raw data.
Nmea
Parse NMEA-0183 sentences: talker ID + sentence type + comma fields, with optional *XX XOR checksum validation.
ModbusAscii
Parse Modbus ASCII frames: hex-decode the body, validate the LRC, expose address + function code + data bytes.
Trait Implementations§
Source§impl Clone for ParserType
impl Clone for ParserType
impl Copy for ParserType
Source§impl Debug for ParserType
impl Debug for ParserType
Source§impl<'de> Deserialize<'de> for ParserType
impl<'de> Deserialize<'de> for ParserType
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 ParserType
Source§impl JsonSchema for ParserType
impl JsonSchema for ParserType
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ParserType
impl PartialEq for ParserType
Source§impl Serialize for ParserType
impl Serialize for ParserType
impl StructuralPartialEq for ParserType
Auto Trait Implementations§
impl Freeze for ParserType
impl RefUnwindSafe for ParserType
impl Send for ParserType
impl Sync for ParserType
impl Unpin for ParserType
impl UnsafeUnpin for ParserType
impl UnwindSafe for ParserType
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