pub struct FieldType {
pub name: WasmSymbol,
pub readonly: bool,
pub type: WasmType,
pub default: WasmValue,
}Fields§
§name: WasmSymbol§readonly: bool§type: WasmType§default: WasmValueImplementations§
source§impl FieldType
impl FieldType
pub fn new<S: Into<WasmSymbol>>(name: S) -> Self
pub fn with_type(self, type: WasmType) -> Self
pub fn with_default(self, default: WasmValue) -> Self
pub fn set_nullable(&mut self, nullable: bool)
pub fn with_mutable(self) -> Self
pub fn with_readonly(self) -> Self
Trait Implementations§
source§impl<'a, 'i> IntoWasm<'a, RecordField<'i>> for FieldTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, RecordField<'i>> for FieldTypewhere
'a: 'i,
fn as_wast(&'a self) -> RecordField<'i>
source§impl<'a, 'i> IntoWasm<'a, StructField<'i>> for FieldTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, StructField<'i>> for FieldTypewhere
'a: 'i,
fn as_wast(&'a self) -> StructField<'i>
Auto Trait Implementations§
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnwindSafe for FieldType
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