pub struct PayloadField<'a> {
pub protocol: Cow<'a, str>,
pub field: Cow<'a, str>,
}Expand description
Fields§
§protocol: Cow<'a, str>A named packet header.
field: Cow<'a, str>The field name.
Trait Implementations§
Source§impl<'a> Clone for PayloadField<'a>
impl<'a> Clone for PayloadField<'a>
Source§fn clone(&self) -> PayloadField<'a>
fn clone(&self) -> PayloadField<'a>
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<'a> Debug for PayloadField<'a>
impl<'a> Debug for PayloadField<'a>
Source§impl Default for PayloadField<'_>
Default payload field reference (arp ptype).
impl Default for PayloadField<'_>
Default payload field reference (arp ptype).
Source§impl<'de, 'a> Deserialize<'de> for PayloadField<'a>
impl<'de, 'a> Deserialize<'de> for PayloadField<'a>
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<'a> JsonSchema for PayloadField<'a>
impl<'a> JsonSchema for PayloadField<'a>
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<'a> PartialEq for PayloadField<'a>
impl<'a> PartialEq for PayloadField<'a>
Source§impl<'a> Serialize for PayloadField<'a>
impl<'a> Serialize for PayloadField<'a>
impl<'a> Eq for PayloadField<'a>
impl<'a> StructuralPartialEq for PayloadField<'a>
Auto Trait Implementations§
impl<'a> Freeze for PayloadField<'a>
impl<'a> RefUnwindSafe for PayloadField<'a>
impl<'a> Send for PayloadField<'a>
impl<'a> Sync for PayloadField<'a>
impl<'a> Unpin for PayloadField<'a>
impl<'a> UnwindSafe for PayloadField<'a>
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