[][src]Struct asn1rs_model::gen::protobuf::ProtobufDefGenerator

pub struct ProtobufDefGenerator { /* fields omitted */ }

Implementations

impl ProtobufDefGenerator[src]

pub fn generate_file(model: &Model<Protobuf>) -> Result<(String, String), Error>[src]

pub fn append_header(
    target: &mut dyn Write,
    model: &Model<Protobuf>
) -> Result<(), Error>
[src]

pub fn append_imports(
    target: &mut dyn Write,
    model: &Model<Protobuf>
) -> Result<(), Error>
[src]

pub fn append_definition(
    target: &mut dyn Write,
    model: &Model<Protobuf>,
    Definition: &Definition<Protobuf>
) -> Result<(), Error>
[src]

pub fn append_field(
    target: &mut dyn Write,
    model: &Model<Protobuf>,
    name: &str,
    role: &ProtobufType,
    tag: usize
) -> Result<(), Error>
[src]

pub fn append_variant(
    target: &mut dyn Write,
    variant: &str,
    tag: usize
) -> Result<(), Error>
[src]

pub fn role_to_full_type(role: &ProtobufType, model: &Model<Protobuf>) -> String[src]

pub fn variant_name(name: &str) -> String[src]

pub fn field_name(name: &str) -> String[src]

pub fn model_file_name(model: &str) -> String[src]

pub fn model_name(model: &str, separator: char) -> String[src]

pub fn model_to_package(model: &str) -> String[src]

Trait Implementations

impl Debug for ProtobufDefGenerator[src]

impl Default for ProtobufDefGenerator[src]

impl Generator<Protobuf> for ProtobufDefGenerator[src]

type Error = Error

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, 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.