[][src]Trait solana_libra_proto_conv::IntoProto

pub trait IntoProto {
    type ProtoType;
    fn into_proto(self) -> Self::ProtoType;
}

Convert Rust struct to Protobuf.

Associated Types

type ProtoType

The corresponding Protobuf type.

Loading content...

Required methods

fn into_proto(self) -> Self::ProtoType

Converts a Rust struct to corresponding Protobuf struct. This should not fail.

Loading content...

Implementations on Foreign Types

impl IntoProto for u32[src]

type ProtoType = u32

impl IntoProto for u64[src]

type ProtoType = u64

impl IntoProto for i32[src]

type ProtoType = i32

impl IntoProto for i64[src]

type ProtoType = i64

impl IntoProto for bool[src]

type ProtoType = bool

impl IntoProto for String[src]

type ProtoType = String

impl IntoProto for Vec<u8>[src]

type ProtoType = Vec<u8>

impl<P, T> IntoProto for Vec<T> where
    P: Message,
    T: IntoProto<ProtoType = P>, 
[src]

Loading content...

Implementors

Loading content...