Struct apache_avro::schema::DecimalSchema
source · pub struct DecimalSchema {
pub precision: usize,
pub scale: usize,
pub inner: Box<Schema>,
}
Expand description
A description of a Union schema.
scale
defaults to 0 and is an integer greater than or equal to 0 and precision
is an
integer greater than 0.
Fields§
§precision: usize
The number of digits in the unscaled value
scale: usize
The number of digits to the right of the decimal point
inner: Box<Schema>
The inner schema of the decimal (fixed or bytes)
Trait Implementations§
source§impl Clone for DecimalSchema
impl Clone for DecimalSchema
source§fn clone(&self) -> DecimalSchema
fn clone(&self) -> DecimalSchema
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 moreAuto Trait Implementations§
impl Freeze for DecimalSchema
impl RefUnwindSafe for DecimalSchema
impl Send for DecimalSchema
impl Sync for DecimalSchema
impl Unpin for DecimalSchema
impl UnwindSafe for DecimalSchema
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)