pub struct TimePointSec {
pub seconds: i64,
}Fields§
§seconds: i64Implementations§
Source§impl TimePointSec
impl TimePointSec
pub fn microseconds(&self) -> TimePointUSec
Trait Implementations§
Source§impl Add<Seconds> for TimePointSec
impl Add<Seconds> for TimePointSec
Source§impl Clone for TimePointSec
impl Clone for TimePointSec
Source§fn clone(&self) -> TimePointSec
fn clone(&self) -> TimePointSec
Returns a duplicate 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 moreSource§impl Debug for TimePointSec
impl Debug for TimePointSec
Source§impl Default for TimePointSec
impl Default for TimePointSec
Source§fn default() -> TimePointSec
fn default() -> TimePointSec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimePointSec
impl<'de> Deserialize<'de> for TimePointSec
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TimePointSec> for DateTime<Utc>
impl From<TimePointSec> for DateTime<Utc>
Source§fn from(time: TimePointSec) -> Self
fn from(time: TimePointSec) -> Self
Converts to this type from the input type.
Source§impl From<i64> for TimePointSec
impl From<i64> for TimePointSec
Source§impl FromStr for TimePointSec
impl FromStr for TimePointSec
Source§impl InputType for TimePointSec
impl InputType for TimePointSec
Source§type RawValueType = TimePointSec
type RawValueType = TimePointSec
The raw type used for validator. Read more
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value. None represents undefined.Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl Ord for TimePointSec
impl Ord for TimePointSec
Source§fn cmp(&self, other: &TimePointSec) -> Ordering
fn cmp(&self, other: &TimePointSec) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl OutputType for TimePointSec
impl OutputType for TimePointSec
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§async fn resolve(
&self,
_: &ContextSelectionSet<'_>,
_field: &Positioned<Field>,
) -> ServerResult<Value>
async fn resolve( &self, _: &ContextSelectionSet<'_>, _field: &Positioned<Field>, ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value.Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl Pack for TimePointSec
impl Pack for TimePointSec
Source§impl PartialEq for TimePointSec
impl PartialEq for TimePointSec
Source§impl PartialOrd for TimePointSec
impl PartialOrd for TimePointSec
Source§impl ScalarType for TimePointSec
impl ScalarType for TimePointSec
Source§impl Serialize for TimePointSec
impl Serialize for TimePointSec
Source§impl Sub<Seconds> for TimePointSec
impl Sub<Seconds> for TimePointSec
Source§impl ToKey for TimePointSec
impl ToKey for TimePointSec
Source§impl ToSchema for TimePointSec
impl ToSchema for TimePointSec
fn schema(builder: &mut SchemaBuilder) -> AnyType
Source§impl ToString for TimePointSec
impl ToString for TimePointSec
Source§impl<'a> Unpack<'a> for TimePointSec
impl<'a> Unpack<'a> for TimePointSec
Source§fn unpack(src: &mut FracInputStream<'a>) -> Result<Self>
fn unpack(src: &mut FracInputStream<'a>) -> Result<Self>
Convert from fracpack format. Also verifies the integrity of the data. Read more
Source§fn verify(src: &mut FracInputStream<'_>) -> Result<()>
fn verify(src: &mut FracInputStream<'_>) -> Result<()>
Verify the integrity of fracpack data. You don’t need to call this if
using [Pack::unpack] since it verifies integrity during unpack.
impl Copy for TimePointSec
impl Eq for TimePointSec
impl StructuralPartialEq for TimePointSec
Auto Trait Implementations§
impl Freeze for TimePointSec
impl RefUnwindSafe for TimePointSec
impl Send for TimePointSec
impl Sync for TimePointSec
impl Unpin for TimePointSec
impl UnwindSafe for TimePointSec
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.