pub enum Ty {
Show 15 variants
I64(String),
F64(String),
Bool,
Str,
List {
item: Box<Ty>,
native: String,
array: bool,
},
Map {
value: Box<Ty>,
native: String,
},
Struct {
name: String,
fields: Vec<(String, String, Ty)>,
},
Opt {
inner: Box<Ty>,
native: String,
},
Tuple(Vec<Ty>),
Num,
Str16,
OptJs {
inner: Box<Ty>,
nullable: bool,
undefinable: bool,
},
Obj(Vec<(String, Ty)>),
Map16(Box<Ty>),
Dyn,
}Expand description
A source-language type the wire carries. native is the type as the source spells it.
Variants§
I64(String)
F64(String)
Bool
Str
List
array marks a Java array (int[]) rather than a list.
Map
Struct
Fields: (source field name, JSON key, type).
Opt
Tuple(Vec<Ty>)
Num
Str16
OptJs
Obj(Vec<(String, Ty)>)
Map16(Box<Ty>)
Dyn
Trait Implementations§
impl Eq for Ty
impl StructuralPartialEq for Ty
Auto Trait Implementations§
impl Forget for Ty
impl Freeze for Ty
impl Move for Ty
impl RefUnwindSafe for Ty
impl Send for Ty
impl Sync for Ty
impl Unpin for Ty
impl UnsafeUnpin for Ty
impl UnwindSafe for Ty
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.