Skip to main content

DirectivePayload

Trait DirectivePayload 

Source
pub trait DirectivePayload:
    Debug
    + Send
    + Sync
    + DynClone
    + Serialize
    + Deserialize { }
Expand description

Trait for custom directive payloads.

Implement this trait and use #[typetag::serde] for serialization support.

Trait Implementations§

Source§

impl<'typetag> Serialize for dyn DirectivePayload + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn DirectivePayload + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn DirectivePayload + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn DirectivePayload + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§