pub enum Rust {
Struct {
ordering: EncodingOrdering,
fields: Vec<Field, Global>,
tag: Option<Tag>,
extension_after: Option<usize>,
},
Enum(Enumeration<String>),
DataEnum(Enumeration<DataVariant>),
TupleStruct {
type: RustType,
tag: Option<Tag>,
constants: Vec<(String, String), Global>,
},
}
Variants§
Struct
Fields
§
ordering: EncodingOrdering
Enum(Enumeration<String>)
DataEnum(Enumeration<DataVariant>)
TupleStruct
Used to represent a single, unnamed inner type
Implementations§
Trait Implementations§
source§impl Generator<Rust> for RustCodeGenerator
impl Generator<Rust> for RustCodeGenerator
source§impl GeneratorSupplement<Rust> for AsyncPsqlInserter
impl GeneratorSupplement<Rust> for AsyncPsqlInserter
fn add_imports(&self, scope: &mut Scope)
fn impl_supplement(&self, _scope: &mut Scope, _definition: &Definition<Rust>)
fn extend_impl_of_struct<'a>( &self, name: &str, impl_scope: &mut Impl, fields: &[Field] )
fn extend_impl_of_enum( &self, _name: &str, impl_scope: &mut Impl, _r_enum: &Enumeration<String> )
fn extend_impl_of_data_enum( &self, name: &str, impl_scope: &mut Impl, enumeration: &Enumeration<DataVariant> )
fn extend_impl_of_tuple( &self, name: &str, impl_scope: &mut Impl, definition: &RustType )
source§impl GeneratorSupplement<Rust> for PsqlInserter
impl GeneratorSupplement<Rust> for PsqlInserter
fn add_imports(&self, scope: &mut Scope)
fn impl_supplement(&self, scope: &mut Scope, definition: &Definition<Rust>)
fn extend_impl_of_struct( &self, _name: &str, _impl_scope: &mut Impl, _fields: &[Field] )
fn extend_impl_of_enum( &self, _name: &str, _impl_scope: &mut Impl, _enumeration: &Enumeration<String> )
fn extend_impl_of_data_enum( &self, _name: &str, _impl_scope: &mut Impl, _enumeration: &Enumeration<DataVariant> )
fn extend_impl_of_tuple( &self, _name: &str, _impl_scope: &mut Impl, _definition: &RustType )
source§impl PartialEq<Rust> for Rust
impl PartialEq<Rust> for Rust
source§impl PartialOrd<Rust> for Rust
impl PartialOrd<Rust> for Rust
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TagProperty for Rust
impl TagProperty for Rust
source§impl Target for Rust
impl Target for Rust
type DefinitionType = Rust
type ValueReferenceType = RustType
impl StructuralPartialEq for Rust
Auto Trait Implementations§
impl RefUnwindSafe for Rust
impl Send for Rust
impl Sync for Rust
impl Unpin for Rust
impl UnwindSafe for Rust
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