pub struct DecimalBuilder<State>(/* private fields */);Expand description
Builder for serializing an instance of the Decimal type.
Can be created using the Decimal::builder method.
Implementations§
Source§impl DecimalBuilder<()>
impl DecimalBuilder<()>
Sourcepub fn precision<T0>(self, value: T0) -> DecimalBuilder<(T0,)>
pub fn precision<T0>(self, value: T0) -> DecimalBuilder<(T0,)>
Setter for the precision field.
Sourcepub fn precision_as_default(self) -> DecimalBuilder<(DefaultValue,)>
pub fn precision_as_default(self) -> DecimalBuilder<(DefaultValue,)>
Sets the precision field to the default value.
Source§impl<T0> DecimalBuilder<(T0,)>
impl<T0> DecimalBuilder<(T0,)>
Sourcepub fn scale<T1>(self, value: T1) -> DecimalBuilder<(T0, T1)>
pub fn scale<T1>(self, value: T1) -> DecimalBuilder<(T0, T1)>
Setter for the scale field.
Sourcepub fn scale_as_default(self) -> DecimalBuilder<(T0, DefaultValue)>
pub fn scale_as_default(self) -> DecimalBuilder<(T0, DefaultValue)>
Sets the scale field to the default value.
Source§impl<T0, T1> DecimalBuilder<(T0, T1)>
impl<T0, T1> DecimalBuilder<(T0, T1)>
Sourcepub fn bit_width<T2>(self, value: T2) -> DecimalBuilder<(T0, T1, T2)>
pub fn bit_width<T2>(self, value: T2) -> DecimalBuilder<(T0, T1, T2)>
Setter for the bitWidth field.
Sourcepub fn bit_width_as_default(self) -> DecimalBuilder<(T0, T1, DefaultValue)>
pub fn bit_width_as_default(self) -> DecimalBuilder<(T0, T1, DefaultValue)>
Sets the bitWidth field to the default value.
Source§impl<T0, T1, T2> DecimalBuilder<(T0, T1, T2)>
impl<T0, T1, T2> DecimalBuilder<(T0, T1, T2)>
Trait Implementations§
Source§impl<State: Debug> Debug for DecimalBuilder<State>
impl<State: Debug> Debug for DecimalBuilder<State>
impl<T0: WriteAsDefault<i32, i32>, T1: WriteAsDefault<i32, i32>, T2: WriteAsDefault<i32, i32>> WriteAs<Offset<Decimal>> for DecimalBuilder<(T0, T1, T2)>
impl<T0: WriteAsDefault<i32, i32>, T1: WriteAsDefault<i32, i32>, T2: WriteAsDefault<i32, i32>> WriteAsOffset<Decimal> for DecimalBuilder<(T0, T1, T2)>
impl<T0: WriteAsDefault<i32, i32>, T1: WriteAsDefault<i32, i32>, T2: WriteAsDefault<i32, i32>> WriteAsOptional<Offset<Decimal>> for DecimalBuilder<(T0, T1, T2)>
Auto Trait Implementations§
impl<State> Freeze for DecimalBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for DecimalBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for DecimalBuilder<State>where
State: Send,
impl<State> Sync for DecimalBuilder<State>where
State: Sync,
impl<State> Unpin for DecimalBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for DecimalBuilder<State>where
State: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more