Skip to main content

Builder

pub struct Builder<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Builder<'a>

Source

pub fn into_reader(self) -> Reader<'a>

Source

pub fn reborrow(&mut self) -> Builder<'_>

Source

pub fn reborrow_as_reader(&self) -> Reader<'_>

Source

pub fn total_size(&self) -> Result<MessageSize>

Source

pub fn get_id(self) -> Result<Builder<'a>>

Source

pub fn set_id(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_id(self) -> Builder<'a>

Source

pub fn has_id(&self) -> bool

Source

pub fn get_raw_symbol(self) -> Result<Builder<'a>>

Source

pub fn set_raw_symbol(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_raw_symbol(self) -> Builder<'a>

Source

pub fn has_raw_symbol(&self) -> bool

Source

pub fn get_asset_class(self) -> Result<AssetClass, NotInSchema>

Source

pub fn set_asset_class(&mut self, value: AssetClass)

Source

pub fn get_exchange(self) -> Result<Builder<'a>>

Source

pub fn set_exchange(&mut self, value: impl SetterInput<Owned>)

Source

pub fn init_exchange(self, size: u32) -> Builder<'a>

Source

pub fn has_exchange(&self) -> bool

Source

pub fn get_underlying(self) -> Result<Builder<'a>>

Source

pub fn set_underlying(&mut self, value: impl SetterInput<Owned>)

Source

pub fn init_underlying(self, size: u32) -> Builder<'a>

Source

pub fn has_underlying(&self) -> bool

Source

pub fn get_option_kind(self) -> Result<OptionKind, NotInSchema>

Source

pub fn set_option_kind(&mut self, value: OptionKind)

Source

pub fn get_strike_price(self) -> Result<Builder<'a>>

Source

pub fn set_strike_price(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_strike_price(self) -> Builder<'a>

Source

pub fn has_strike_price(&self) -> bool

Source

pub fn get_activation_ns(self) -> Result<Builder<'a>>

Source

pub fn set_activation_ns(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_activation_ns(self) -> Builder<'a>

Source

pub fn has_activation_ns(&self) -> bool

Source

pub fn get_expiration_ns(self) -> Result<Builder<'a>>

Source

pub fn set_expiration_ns(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_expiration_ns(self) -> Builder<'a>

Source

pub fn has_expiration_ns(&self) -> bool

Source

pub fn get_currency(self) -> Result<Builder<'a>>

Source

pub fn set_currency(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_currency(self) -> Builder<'a>

Source

pub fn has_currency(&self) -> bool

Source

pub fn get_price_precision(self) -> u8

Source

pub fn set_price_precision(&mut self, value: u8)

Source

pub fn get_price_increment(self) -> Result<Builder<'a>>

Source

pub fn set_price_increment(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_price_increment(self) -> Builder<'a>

Source

pub fn has_price_increment(&self) -> bool

Source

pub fn get_size_increment(self) -> Result<Builder<'a>>

Source

pub fn set_size_increment(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_size_increment(self) -> Builder<'a>

Source

pub fn has_size_increment(&self) -> bool

Source

pub fn get_size_precision(self) -> u8

Source

pub fn set_size_precision(&mut self, value: u8)

Source

pub fn get_multiplier(self) -> Result<Builder<'a>>

Source

pub fn set_multiplier(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_multiplier(self) -> Builder<'a>

Source

pub fn has_multiplier(&self) -> bool

Source

pub fn get_lot_size(self) -> Result<Builder<'a>>

Source

pub fn set_lot_size(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_lot_size(self) -> Builder<'a>

Source

pub fn has_lot_size(&self) -> bool

Source

pub fn get_margin_init(self) -> Result<Builder<'a>>

Source

pub fn set_margin_init(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_margin_init(self) -> Builder<'a>

Source

pub fn has_margin_init(&self) -> bool

Source

pub fn get_margin_maint(self) -> Result<Builder<'a>>

Source

pub fn set_margin_maint(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_margin_maint(self) -> Builder<'a>

Source

pub fn has_margin_maint(&self) -> bool

Source

pub fn get_maker_fee(self) -> Result<Builder<'a>>

Source

pub fn set_maker_fee(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_maker_fee(self) -> Builder<'a>

Source

pub fn has_maker_fee(&self) -> bool

Source

pub fn get_taker_fee(self) -> Result<Builder<'a>>

Source

pub fn set_taker_fee(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_taker_fee(self) -> Builder<'a>

Source

pub fn has_taker_fee(&self) -> bool

Source

pub fn get_max_quantity(self) -> Result<Builder<'a>>

Source

pub fn set_max_quantity(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_max_quantity(self) -> Builder<'a>

Source

pub fn has_max_quantity(&self) -> bool

Source

pub fn get_min_quantity(self) -> Result<Builder<'a>>

Source

pub fn set_min_quantity(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_min_quantity(self) -> Builder<'a>

Source

pub fn has_min_quantity(&self) -> bool

Source

pub fn get_max_price(self) -> Result<Builder<'a>>

Source

pub fn set_max_price(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_max_price(self) -> Builder<'a>

Source

pub fn has_max_price(&self) -> bool

Source

pub fn get_min_price(self) -> Result<Builder<'a>>

Source

pub fn set_min_price(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_min_price(self) -> Builder<'a>

Source

pub fn has_min_price(&self) -> bool

Source

pub fn get_tick_scheme(self) -> Result<Builder<'a>>

Source

pub fn set_tick_scheme(&mut self, value: impl SetterInput<Owned>)

Source

pub fn init_tick_scheme(self, size: u32) -> Builder<'a>

Source

pub fn has_tick_scheme(&self) -> bool

Source

pub fn get_info(self) -> Result<Builder<'a>>

Source

pub fn set_info(&mut self, value: Reader<'_>)

Source

pub fn init_info(self, size: u32) -> Builder<'a>

Source

pub fn has_info(&self) -> bool

Source

pub fn get_ts_event(self) -> Result<Builder<'a>>

Source

pub fn set_ts_event(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_ts_event(self) -> Builder<'a>

Source

pub fn has_ts_event(&self) -> bool

Source

pub fn get_ts_init(self) -> Result<Builder<'a>>

Source

pub fn set_ts_init(&mut self, value: Reader<'_>) -> Result<()>

Source

pub fn init_ts_init(self) -> Builder<'a>

Source

pub fn has_ts_init(&self) -> bool

Trait Implementations§

Source§

impl<'a> From<Builder<'a>> for Builder<'a>

Source§

fn from(builder: Builder<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<StructBuilder<'a>> for Builder<'a>

Source§

fn from(builder: StructBuilder<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromPointerBuilder<'a> for Builder<'a>

Source§

fn init_pointer(builder: PointerBuilder<'a>, _size: u32) -> Self

Source§

fn get_from_pointer( builder: PointerBuilder<'a>, default: Option<&'a [Word]>, ) -> Result<Self>

Source§

impl HasStructSize for Builder<'_>

Source§

const STRUCT_SIZE: StructSize

Source§

impl HasTypeId for Builder<'_>

Source§

const TYPE_ID: u64 = _private::TYPE_ID

Source§

impl<'a> ImbueMut<'a> for Builder<'a>

Source§

fn imbue_mut(&mut self, cap_table: &'a mut CapTable)

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for Builder<'a>

§

impl<'a> !Send for Builder<'a>

§

impl<'a> !Sync for Builder<'a>

§

impl<'a> !UnwindSafe for Builder<'a>

§

impl<'a> Freeze for Builder<'a>

§

impl<'a> Unpin for Builder<'a>

§

impl<'a> UnsafeUnpin for Builder<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.