[][src]Enum asn1rs_model::model::protobuf::ProtobufType

pub enum ProtobufType {
    Bool,
    SFixed32,
    SFixed64,
    UInt32,
    UInt64,
    SInt32,
    SInt64,
    String,
    Bytes,
    Repeated(Box<ProtobufType>),
    OneOf(Vec<(String, ProtobufType)>),
    Complex(String),
}

Variants

Bool
SFixed32
SFixed64
UInt32
UInt64
SInt32
SInt64
String
Bytes
Repeated(Box<ProtobufType>)
Complex(String)

Indicates a complex, custom type that is not one of rusts known types

Implementations

impl ProtobufType[src]

pub fn from(rust: &RustType) -> ProtobufType[src]

pub fn to_rust(&self) -> RustType[src]

pub fn is_primitive(&self) -> bool[src]

Trait Implementations

impl Clone for ProtobufType[src]

impl Debug for ProtobufType[src]

impl PartialEq<ProtobufType> for ProtobufType[src]

impl PartialOrd<ProtobufType> for ProtobufType[src]

impl StructuralPartialEq for ProtobufType[src]

impl ToString for ProtobufType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.