Struct amadeus::data::Date [−][src]
pub struct Date { /* fields omitted */ }
Implementations
impl Date
[src]
impl Date
[src]pub fn new(year: i64, month: u8, day: u8, timezone: Timezone) -> Option<Date>
[src]
pub fn from_ordinal(year: i64, day: u16, timezone: Timezone) -> Option<Date>
[src]
pub fn year(&self) -> i64
[src]
pub fn month(&self) -> u8
[src]
pub fn day(&self) -> u8
[src]
pub fn ordinal(&self) -> u16
[src]
pub fn without_timezone(&self) -> DateWithoutTimezone
[src]
pub fn timezone(&self) -> Timezone
[src]
Trait Implementations
impl AmadeusOrd for Date
[src]
impl AmadeusOrd for Date
[src]pub fn amadeus_cmp(&self, other: &Date) -> Ordering
[src]
impl<'de> Deserialize<'de> for Date
[src]
impl<'de> Deserialize<'de> for Date
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Date, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Date, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl DowncastFrom<Value> for Date
[src]
impl DowncastFrom<Value> for Date
[src]pub fn downcast_from(self_: Value) -> Result<Date, DowncastError>
[src]
impl Ord for Date
[src]
impl Ord for Date
[src]impl ParquetData for Date
[src]
impl ParquetData for Date
[src]Corresponds to the UTC Date logical type.
type Schema = DateSchema
type Reader = impl Reader<Item = Date>
type Predicate = Predicate
pub fn parse(
schema: &Type,
_predicate: Option<&<Date as ParquetData>::Predicate>,
repetition: Option<Repetition>
) -> Result<(String, <Date as ParquetData>::Schema), ParquetError>
[src]
pub fn parse(
schema: &Type,
_predicate: Option<&<Date as ParquetData>::Predicate>,
repetition: Option<Repetition>
) -> Result<(String, <Date as ParquetData>::Schema), ParquetError>
[src]Parse a [Type
] into Self::Schema
, using repetition
instead of
Type::get_basic_info().repetition()
. A repetition
of None
denotes a root
schema. Read more
pub fn reader(
_schema: &<Date as ParquetData>::Schema,
path: &mut Vec<String, Global>,
def_level: i16,
rep_level: i16,
paths: &mut HashMap<ColumnPath, ColumnReader, RandomState>,
batch_size: usize
) -> <Date as ParquetData>::Reader
[src]
pub fn reader(
_schema: &<Date as ParquetData>::Schema,
path: &mut Vec<String, Global>,
def_level: i16,
rep_level: i16,
paths: &mut HashMap<ColumnPath, ColumnReader, RandomState>,
batch_size: usize
) -> <Date as ParquetData>::Reader
[src]Builds tree of [Reader
]s for the specified [Schema
] recursively.
impl PartialOrd<Date> for Date
[src]
impl PartialOrd<Date> for Date
[src]pub fn partial_cmp(&self, other: &Date) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &Date) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PostgresData for Date
[src]
impl PostgresData for Date
[src]impl SerdeData for Date
[src]
impl SerdeData for Date
[src]pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn deserialize<'de, D>(
deserializer: D,
_schema: Option<SchemaIncomplete>
) -> Result<Date, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D,
_schema: Option<SchemaIncomplete>
) -> Result<Date, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Serialize for Date
[src]
impl Serialize for Date
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Copy for Date
[src]
impl Eq for Date
[src]
impl StructuralEq for Date
[src]
impl StructuralPartialEq for Date
[src]
Auto Trait Implementations
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
Blanket Implementations
impl<T> Any for T where
T: Any + Serialize + Deserialize,
[src]
impl<T> Any for T where
T: Any + Serialize + Deserialize,
[src]impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<A, B> Downcast<A> for B where
A: DowncastFrom<B>,
[src]
impl<A, B> Downcast<A> for B where
A: DowncastFrom<B>,
[src]pub fn downcast(self) -> Result<A, DowncastError>
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Type for T
[src]
impl<T> Type for T
[src]pub fn meta(self: *const T) -> <T as Type>::Meta
[src]
pub fn meta(self: *const T) -> <T as Type>::Meta
[src]Retrieve TraitObject
, Slice
or Concrete
meta data respectively for a type
pub fn dangling(_t: <T as Type>::Meta) -> NonNull<T>
[src]
pub fn dangling(_t: <T as Type>::Meta) -> NonNull<T>
[src]Create a dangling non-null *const Self
with the provided Self::Meta
.
pub fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T
[src]
pub fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T
[src]Create a *mut Self
with the provided Self::Meta
.
fn meta_type(self: *const Self) -> MetaType
[src]
fn meta_type(self: *const Self) -> MetaType
[src]Helper method describing whether a type is TraitObject
, Slice
or Concrete
.
impl<T> Type for T where
T: ?Sized,
[src]
impl<T> Type for T where
T: ?Sized,
[src]pub default fn meta(self: *const T) -> <T as Type>::Meta
[src]
pub default fn meta(self: *const T) -> <T as Type>::Meta
[src]Retrieve TraitObject
, Slice
or Concrete
meta data respectively for a type
pub default fn dangling(t: <T as Type>::Meta) -> NonNull<T>
[src]
pub default fn dangling(t: <T as Type>::Meta) -> NonNull<T>
[src]Create a dangling non-null *const Self
with the provided Self::Meta
.
pub default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T
[src]
pub default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T
[src]Create a *mut Self
with the provided Self::Meta
.
type Meta: 'static
type Meta: 'static
Type of metadata for type.
fn meta_type(self: *const Self) -> MetaType
[src]
fn meta_type(self: *const Self) -> MetaType
[src]Helper method describing whether a type is TraitObject
, Slice
or Concrete
.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> Debug for T where
T: Debug + Serialize + Deserialize + ?Sized,
[src]
T: Debug + Serialize + Deserialize + ?Sized,
impl<T> Deserialize for T where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Display for T where
T: Display + Serialize + Deserialize + ?Sized,
[src]
T: Display + Serialize + Deserialize + ?Sized,
impl<T> ProcessSend for T where
T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized,
[src]
T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,