Enum tealr::TypeGenerator
source · pub enum TypeGenerator {
Record(Box<RecordGenerator>),
Enum(EnumGenerator),
}
Expand description
Container of all the information needed to create the .d.tl
file for your type.
Variants§
Record(Box<RecordGenerator>)
the type should be represented as a struct
Enum(EnumGenerator)
the type should be represented as an enum
Trait Implementations§
source§impl Clone for TypeGenerator
impl Clone for TypeGenerator
source§fn clone(&self) -> TypeGenerator
fn clone(&self) -> TypeGenerator
Returns a copy 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<'de> Deserialize<'de> for TypeGenerator
impl<'de> Deserialize<'de> for TypeGenerator
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<EnumGenerator> for TypeGenerator
impl From<EnumGenerator> for TypeGenerator
source§fn from(a: EnumGenerator) -> Self
fn from(a: EnumGenerator) -> Self
Converts to this type from the input type.
source§impl From<RecordGenerator> for TypeGenerator
impl From<RecordGenerator> for TypeGenerator
source§fn from(a: RecordGenerator) -> Self
fn from(a: RecordGenerator) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TypeGenerator
impl Send for TypeGenerator
impl Sync for TypeGenerator
impl Unpin for TypeGenerator
impl UnwindSafe for TypeGenerator
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