[][src]Struct celery_rs_core::message_protocol::headers::Headers

pub struct Headers {
    pub lang: String,
    pub task: String,
    pub id: String,
    pub root_id: String,
    pub parent_id: Option<String>,
    pub group: Option<String>,
    pub meth: Option<String>,
    pub shadow: Option<String>,
    pub eta: Option<String>,
    pub expires: Option<String>,
    pub retries: Option<i8>,
    pub timelimit: Option<TimeLimit>,
    pub argsrepr: Option<Args>,
    pub kwargsrepr: Option<KwArgs>,
    pub origin: Option<String>,
}

Stored headers

Fields

lang: Stringtask: Stringid: Stringroot_id: Stringparent_id: Option<String>group: Option<String>meth: Option<String>shadow: Option<String>eta: Option<String>expires: Option<String>retries: Option<i8>timelimit: Option<TimeLimit>argsrepr: Option<Args>kwargsrepr: Option<KwArgs>origin: Option<String>

Methods

impl Headers[src]

Headers implementation

pub fn convert_to_btree_map(&self) -> BTreeMap<String, AmqpValue>[src]

convert headers to a btree map

pub fn convert_to_json_map(&self) -> Map<String, Value>[src]

convert to a json capable map

pub fn new(lang: String, task: String, id: String, root_id: String) -> Headers[src]

create new headers

Trait Implementations

impl Clone for Headers[src]

impl Debug for Headers[src]

Auto Trait Implementations

impl Send for Headers

impl Sync for Headers

impl Unpin for Headers

impl UnwindSafe for Headers

impl RefUnwindSafe for Headers

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,