Struct lockchain_http::model::CarrierMessage[][src]

pub struct CarrierMessage<T: Serialize + DeserializeOwned> {
    pub error: Result<(), LockError>,
    pub data: Option<T>,
}

A generic container that json/error wraps lockchain-types

This is heavily used in the lockchain-REST API and can be utilised to send both encrypted and cleartext data via the API endpoint, using the same code.

Fields

Auto Trait Implementations

impl<T> Send for CarrierMessage<T> where
    T: Send

impl<T> Sync for CarrierMessage<T> where
    T: Sync