[][src]Struct parquet_format::DecimalType

pub struct DecimalType {
    pub scale: i32,
    pub precision: i32,
}

Decimal logical type annotation

To maintain forward-compatibility in v1, implementations using this logical type must also set scale and precision on the annotated SchemaElement.

Allowed for physical types: INT32, INT64, FIXED, and BINARY

Fields

scale: i32precision: i32

Implementations

impl DecimalType[src]

pub fn new(scale: i32, precision: i32) -> DecimalType[src]

pub fn read_from_in_protocol(
    i_prot: &mut dyn TInputProtocol
) -> Result<DecimalType>
[src]

pub fn write_to_out_protocol(
    &self,
    o_prot: &mut dyn TOutputProtocol
) -> Result<()>
[src]

Trait Implementations

impl Clone for DecimalType[src]

impl Debug for DecimalType[src]

impl Eq for DecimalType[src]

impl Hash for DecimalType[src]

impl Ord for DecimalType[src]

impl PartialEq<DecimalType> for DecimalType[src]

impl PartialOrd<DecimalType> for DecimalType[src]

impl StructuralEq for DecimalType[src]

impl StructuralPartialEq for DecimalType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.