pub struct HeaderField {
pub name: String,
pub field_type: HeaderFieldType,
pub optional: bool,
pub validation: Option<FieldValidation>,
}Expand description
Individual header field specification
Fields§
§name: StringField name for debugging and validation
field_type: HeaderFieldTypeField data type
optional: boolWhether this field is optional
validation: Option<FieldValidation>Field validation constraints
Trait Implementations§
Source§impl Clone for HeaderField
impl Clone for HeaderField
Source§fn clone(&self) -> HeaderField
fn clone(&self) -> HeaderField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HeaderField
impl Debug for HeaderField
Source§impl<'de> Deserialize<'de> for HeaderField
impl<'de> Deserialize<'de> for HeaderField
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 HeaderField
impl RefUnwindSafe for HeaderField
impl Send for HeaderField
impl Sync for HeaderField
impl Unpin for HeaderField
impl UnsafeUnpin for HeaderField
impl UnwindSafe for HeaderField
Blanket Implementations§
impl<T> Allocation for T
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