Struct amadeus::data::TimeWithoutTimezone [−][src]
pub struct TimeWithoutTimezone(_);
Implementations
impl TimeWithoutTimezone
[src]
impl TimeWithoutTimezone
[src]pub fn new(
hour: u8,
minute: u8,
second: u8,
nanosecond: u32
) -> Option<TimeWithoutTimezone>
[src]
pub fn new(
hour: u8,
minute: u8,
second: u8,
nanosecond: u32
) -> Option<TimeWithoutTimezone>
[src]Create a TimeWithoutTimezone from hour, minute, second and nanosecond.
The nanosecond part can exceed 1,000,000,000 in order to represent the leap second.
Returns None on invalid hour, minute, second and/or nanosecond.
pub fn from_seconds(
seconds: u32,
nanosecond: u32
) -> Option<TimeWithoutTimezone>
[src]
pub fn from_seconds(
seconds: u32,
nanosecond: u32
) -> Option<TimeWithoutTimezone>
[src]Create a TimeWithoutTimezone from the number of seconds since midnight and nanosecond.
The nanosecond part can exceed 1,000,000,000 in order to represent the leap second.
Returns None on invalid number of seconds and/or nanosecond.
pub fn hour(&self) -> u8
[src]
pub fn minute(&self) -> u8
[src]
pub fn second(&self) -> u8
[src]
pub fn nanosecond(&self) -> u32
[src]
pub fn with_timezone(self, timezone: Timezone) -> Time
[src]
pub fn truncate_minutes(&self, minutes: u8) -> TimeWithoutTimezone
[src]
Trait Implementations
impl AmadeusOrd for TimeWithoutTimezone
[src]
impl AmadeusOrd for TimeWithoutTimezone
[src]pub fn amadeus_cmp(&self, other: &TimeWithoutTimezone) -> Ordering
[src]
impl Clone for TimeWithoutTimezone
[src]
impl Clone for TimeWithoutTimezone
[src]pub fn clone(&self) -> TimeWithoutTimezone
[src]
pub fn clone(&self) -> TimeWithoutTimezone
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Data for TimeWithoutTimezone
[src]
impl Data for TimeWithoutTimezone
[src]type Vec = Vec<TimeWithoutTimezone, Global>
type DynamicType = ()
pub fn new_vec(
_type: <TimeWithoutTimezone as Data>::DynamicType
) -> <TimeWithoutTimezone as Data>::Vec
[src]
_type: <TimeWithoutTimezone as Data>::DynamicType
) -> <TimeWithoutTimezone as Data>::Vec
impl Data for TimeWithoutTimezone
[src]
impl Data for TimeWithoutTimezone
[src]impl Debug for TimeWithoutTimezone
[src]
impl Debug for TimeWithoutTimezone
[src]impl<'de> Deserialize<'de> for TimeWithoutTimezone
[src]
impl<'de> Deserialize<'de> for TimeWithoutTimezone
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<TimeWithoutTimezone, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<TimeWithoutTimezone, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Display for TimeWithoutTimezone
[src]
impl Display for TimeWithoutTimezone
[src]impl DowncastFrom<Value> for TimeWithoutTimezone
[src]
impl DowncastFrom<Value> for TimeWithoutTimezone
[src]pub fn downcast_from(self_: Value) -> Result<TimeWithoutTimezone, DowncastError>
[src]
impl From<TimeWithoutTimezone> for Value
[src]
impl From<TimeWithoutTimezone> for Value
[src]pub fn from(value: TimeWithoutTimezone) -> Value
[src]
pub fn from(value: TimeWithoutTimezone) -> Value
[src]Performs the conversion.
impl FromStr for TimeWithoutTimezone
[src]
impl FromStr for TimeWithoutTimezone
[src]type Err = ParseDateError
type Err = ParseDateError
The associated error which can be returned from parsing.
pub fn from_str(
s: &str
) -> Result<TimeWithoutTimezone, <TimeWithoutTimezone as FromStr>::Err>
[src]
pub fn from_str(
s: &str
) -> Result<TimeWithoutTimezone, <TimeWithoutTimezone as FromStr>::Err>
[src]Parses a string s
to return a value of this type. Read more
impl Hash for TimeWithoutTimezone
[src]
impl Hash for TimeWithoutTimezone
[src]impl Ord for TimeWithoutTimezone
[src]
impl Ord for TimeWithoutTimezone
[src]impl ParquetData for TimeWithoutTimezone
[src]
impl ParquetData for TimeWithoutTimezone
[src]type Schema = StringSchema
type Reader = impl Reader<Item = TimeWithoutTimezone>
type Predicate = Predicate
pub fn parse(
schema: &Type,
_predicate: Option<&<TimeWithoutTimezone as ParquetData>::Predicate>,
repetition: Option<Repetition>
) -> Result<(String, <TimeWithoutTimezone as ParquetData>::Schema), ParquetError>
[src]
pub fn parse(
schema: &Type,
_predicate: Option<&<TimeWithoutTimezone as ParquetData>::Predicate>,
repetition: Option<Repetition>
) -> Result<(String, <TimeWithoutTimezone 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: &<TimeWithoutTimezone as ParquetData>::Schema,
path: &mut Vec<String, Global>,
def_level: i16,
rep_level: i16,
paths: &mut HashMap<ColumnPath, ColumnReader, RandomState>,
batch_size: usize
) -> <TimeWithoutTimezone as ParquetData>::Reader
[src]
pub fn reader(
schema: &<TimeWithoutTimezone as ParquetData>::Schema,
path: &mut Vec<String, Global>,
def_level: i16,
rep_level: i16,
paths: &mut HashMap<ColumnPath, ColumnReader, RandomState>,
batch_size: usize
) -> <TimeWithoutTimezone as ParquetData>::Reader
[src]Builds tree of [Reader
]s for the specified [Schema
] recursively.
impl PartialEq<TimeWithoutTimezone> for Value
[src]
impl PartialEq<TimeWithoutTimezone> for Value
[src]impl PartialEq<TimeWithoutTimezone> for TimeWithoutTimezone
[src]
impl PartialEq<TimeWithoutTimezone> for TimeWithoutTimezone
[src]pub fn eq(&self, other: &TimeWithoutTimezone) -> bool
[src]
pub fn eq(&self, other: &TimeWithoutTimezone) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &TimeWithoutTimezone) -> bool
[src]
pub fn ne(&self, other: &TimeWithoutTimezone) -> bool
[src]This method tests for !=
.
impl PartialOrd<TimeWithoutTimezone> for TimeWithoutTimezone
[src]
impl PartialOrd<TimeWithoutTimezone> for TimeWithoutTimezone
[src]pub fn partial_cmp(&self, other: &TimeWithoutTimezone) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &TimeWithoutTimezone) -> 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 TimeWithoutTimezone
[src]
impl PostgresData for TimeWithoutTimezone
[src]impl SerdeData for TimeWithoutTimezone
[src]
impl SerdeData for TimeWithoutTimezone
[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<TimeWithoutTimezone, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D,
_schema: Option<SchemaIncomplete>
) -> Result<TimeWithoutTimezone, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Serialize for TimeWithoutTimezone
[src]
impl Serialize for TimeWithoutTimezone
[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 TimeWithoutTimezone
[src]
impl Eq for TimeWithoutTimezone
[src]
impl StructuralEq for TimeWithoutTimezone
[src]
impl StructuralPartialEq for TimeWithoutTimezone
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeWithoutTimezone
impl Send for TimeWithoutTimezone
impl Sync for TimeWithoutTimezone
impl Unpin for TimeWithoutTimezone
impl UnwindSafe for TimeWithoutTimezone
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 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<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<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,