pub enum ProtobufType {
Show 13 variants
Bool,
SFixed32,
SFixed64,
UInt32,
UInt64,
SInt32,
SInt64,
String,
Bytes,
BitsReprByBytesAndBitsLen,
Repeated(Box<ProtobufType>),
OneOf(Vec<(String, ProtobufType)>),
Complex(String),
}Variants§
Bool
SFixed32
SFixed64
UInt32
UInt64
SInt32
SInt64
String
Bytes
BitsReprByBytesAndBitsLen
Repeated(Box<ProtobufType>)
OneOf(Vec<(String, ProtobufType)>)
Complex(String)
Indicates a complex, custom type that is not one of rusts known types
Implementations§
Source§impl ProtobufType
impl ProtobufType
pub fn from(rust: &RustType) -> ProtobufType
pub fn to_rust(&self) -> RustType
pub fn is_primitive(&self) -> bool
Trait Implementations§
Source§impl Clone for ProtobufType
impl Clone for ProtobufType
Source§fn clone(&self) -> ProtobufType
fn clone(&self) -> ProtobufType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtobufType
impl Debug for ProtobufType
Source§impl PartialEq for ProtobufType
impl PartialEq for ProtobufType
Source§impl PartialOrd for ProtobufType
impl PartialOrd for ProtobufType
Source§impl ToString for ProtobufType
impl ToString for ProtobufType
impl StructuralPartialEq for ProtobufType
Auto Trait Implementations§
impl Freeze for ProtobufType
impl RefUnwindSafe for ProtobufType
impl Send for ProtobufType
impl Sync for ProtobufType
impl Unpin for ProtobufType
impl UnwindSafe for ProtobufType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more