[−][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 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 ()
[src]
type ProtoStruct = Empty
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 + Debug + Clone,
T: ProtobufConvert,
S: Default + BuildHasher,
[src]
K: Eq + Hash + Debug + Clone,
T: ProtobufConvert,
S: Default + BuildHasher,
type ProtoStruct = HashMap<K, T::ProtoStruct, S>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for BitVec
[src]
type ProtoStruct = BitVec
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for bool
[src]
type ProtoStruct = bool
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for u32
[src]
type ProtoStruct = u32
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for u64
[src]
type ProtoStruct = u64
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for i32
[src]
type ProtoStruct = i32
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for i64
[src]
type ProtoStruct = i64
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for f32
[src]
type ProtoStruct = f32
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for f64
[src]
type ProtoStruct = f64
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 8]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 16]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 24]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 32]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 40]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 48]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 56]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 64]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 72]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 80]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 88]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 96]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 104]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 112]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 120]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 128]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 160]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 256]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 512]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 1024]
[src]
Special case for fixed sized arrays.
type ProtoStruct = Vec<u8>
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
impl ProtobufConvert for [u8; 2048]
[src]
Special case for fixed sized arrays.