[−][src]Struct asn1rs_model::gen::protobuf::ProtobufDefGenerator
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]
target: &mut dyn Write,
model: &Model<Protobuf>
) -> Result<(), Error>
pub fn append_imports(
target: &mut dyn Write,
model: &Model<Protobuf>
) -> Result<(), Error>
[src]
target: &mut dyn Write,
model: &Model<Protobuf>
) -> Result<(), Error>
pub fn append_definition(
target: &mut dyn Write,
model: &Model<Protobuf>,
Definition: &Definition<Protobuf>
) -> Result<(), Error>
[src]
target: &mut dyn Write,
model: &Model<Protobuf>,
Definition: &Definition<Protobuf>
) -> Result<(), Error>
pub fn append_field(
target: &mut dyn Write,
model: &Model<Protobuf>,
name: &str,
role: &ProtobufType,
tag: usize
) -> Result<(), Error>
[src]
target: &mut dyn Write,
model: &Model<Protobuf>,
name: &str,
role: &ProtobufType,
tag: usize
) -> Result<(), Error>
pub fn append_variant(
target: &mut dyn Write,
variant: &str,
tag: usize
) -> Result<(), Error>
[src]
target: &mut dyn Write,
variant: &str,
tag: usize
) -> Result<(), Error>
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]
fn default() -> ProtobufDefGenerator
[src]
impl Generator<Protobuf> for ProtobufDefGenerator
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProtobufDefGenerator
impl Send for ProtobufDefGenerator
impl Sync for ProtobufDefGenerator
impl Unpin for ProtobufDefGenerator
impl UnwindSafe for ProtobufDefGenerator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,