pub struct Header {
pub optional: bool,
pub name: String,
pub value: Option<String>,
}
👎Deprecated since 1.3.1: This crate has been renamed to ‘huginn-net’. Please use ‘huginn-net’ instead. See https://crates.io/crates/huginn-net for migration details.
Fields§
§optional: bool
👎Deprecated since 1.3.1: This crate has been renamed to ‘huginn-net’. Please use ‘huginn-net’ instead. See https://crates.io/crates/huginn-net for migration details.
§name: String
👎Deprecated since 1.3.1: This crate has been renamed to ‘huginn-net’. Please use ‘huginn-net’ instead. See https://crates.io/crates/huginn-net for migration details.
§value: Option<String>
👎Deprecated since 1.3.1: This crate has been renamed to ‘huginn-net’. Please use ‘huginn-net’ instead. See https://crates.io/crates/huginn-net for migration details.
Implementations§
Source§impl Header
impl Header
pub fn new<S: AsRef<str>>(name: S) -> Self
👎Deprecated since 1.3.1: This crate has been renamed to ‘huginn-net’. Please use ‘huginn-net’ instead. See https://crates.io/crates/huginn-net for migration details.
pub fn with_value<S: AsRef<str>>(self, value: S) -> Self
👎Deprecated since 1.3.1: This crate has been renamed to ‘huginn-net’. Please use ‘huginn-net’ instead. See https://crates.io/crates/huginn-net for migration details.
pub fn with_optional_value<S: AsRef<str>>(self, value: Option<S>) -> Self
👎Deprecated since 1.3.1: This crate has been renamed to ‘huginn-net’. Please use ‘huginn-net’ instead. See https://crates.io/crates/huginn-net for migration details.
pub fn optional(self) -> Self
👎Deprecated since 1.3.1: This crate has been renamed to ‘huginn-net’. Please use ‘huginn-net’ instead. See https://crates.io/crates/huginn-net for migration details.
Trait Implementations§
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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