[−][src]Trait exonum::proto::ProtobufConvert
Used for establishing correspondence between rust struct and protobuf rust struct
Associated Types
type ProtoStruct
Type of the protobuf clone of Self
Required methods
fn to_pb(&self) -> Self::ProtoStruct
Struct -> ProtoStruct
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
ProtoStruct -> Struct
Implementations on Foreign Types
impl ProtobufConvert for Hash
[src]
impl ProtobufConvert for PublicKey
[src]
type ProtoStruct = PublicKey
fn to_pb(&self) -> PublicKey
[src]
fn from_pb(pb: PublicKey) -> Result<Self, Error>
[src]
impl ProtobufConvert for Signature
[src]
type ProtoStruct = Signature
fn to_pb(&self) -> Signature
[src]
fn from_pb(pb: Signature) -> Result<Self, Error>
[src]
impl ProtobufConvert for BitVec
[src]
type ProtoStruct = BitVec
fn to_pb(&self) -> BitVec
[src]
fn from_pb(pb: BitVec) -> Result<Self, Error>
[src]
impl ProtobufConvert for DateTime<Utc>
[src]
type ProtoStruct = Timestamp
fn to_pb(&self) -> Timestamp
[src]
fn from_pb(pb: Timestamp) -> Result<Self, Error>
[src]
impl ProtobufConvert for String
[src]
type ProtoStruct = Self
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for u16
[src]
type ProtoStruct = u32
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for i16
[src]
type ProtoStruct = i32
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl<T> ProtobufConvert for Vec<T> where
T: ProtobufConvert,
[src]
T: ProtobufConvert,
type ProtoStruct = Vec<T::ProtoStruct>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for Vec<u8>
[src]
Special case for protobuf bytes.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl<K, T, S> ProtobufConvert for HashMap<K, T, S> where
K: Eq + Hash + Clone,
T: ProtobufConvert,
S: Default + BuildHasher,
[src]
K: Eq + Hash + Clone,
T: ProtobufConvert,
S: Default + BuildHasher,