#[repr(transparent)]pub struct Seconds(pub Nat64);Tuple Fields§
§0: Nat64Trait Implementations§
Source§impl AddAssign<u64> for Seconds
impl AddAssign<u64> for Seconds
Source§fn add_assign(&mut self, other: Nat64)
fn add_assign(&mut self, other: Nat64)
Performs the
+= operation. Read moreSource§impl AddAssign for Seconds
impl AddAssign for Seconds
Source§fn add_assign(&mut self, other: Seconds)
fn add_assign(&mut self, other: Seconds)
Performs the
+= operation. Read moreSource§impl CandidType for Seconds
impl CandidType for Seconds
Source§impl<'de> Deserialize<'de> for Seconds
impl<'de> Deserialize<'de> for Seconds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DivAssign<u64> for Seconds
impl DivAssign<u64> for Seconds
Source§fn div_assign(&mut self, other: Nat64)
fn div_assign(&mut self, other: Nat64)
Performs the
/= operation. Read moreSource§impl DivAssign for Seconds
impl DivAssign for Seconds
Source§fn div_assign(&mut self, other: Seconds)
fn div_assign(&mut self, other: Seconds)
Performs the
/= operation. Read moreSource§impl FieldTypeMeta for Seconds
impl FieldTypeMeta for Seconds
Source§const KIND: FieldKind = Self::__KIND
const KIND: FieldKind = Self::__KIND
Semantic field kind used for runtime planning and validation.
Source§const STORAGE_DECODE: FieldStorageDecode = Self::__STORAGE_DECODE
const STORAGE_DECODE: FieldStorageDecode = Self::__STORAGE_DECODE
Persisted decode contract used by row and payload decoding.
Source§const NESTED_FIELDS: &'static [FieldModel]
const NESTED_FIELDS: &'static [FieldModel]
Known nested fields for generated structured records.
Source§impl MulAssign<u64> for Seconds
impl MulAssign<u64> for Seconds
Source§fn mul_assign(&mut self, other: Nat64)
fn mul_assign(&mut self, other: Nat64)
Performs the
*= operation. Read moreSource§impl MulAssign for Seconds
impl MulAssign for Seconds
Source§fn mul_assign(&mut self, other: Seconds)
fn mul_assign(&mut self, other: Seconds)
Performs the
*= operation. Read moreSource§impl NumericValue for Seconds
impl NumericValue for Seconds
Source§fn try_to_decimal(&self) -> Option<Decimal>
fn try_to_decimal(&self) -> Option<Decimal>
Convert this value into Decimal for generic numeric handling.
Source§fn try_from_decimal(value: Decimal) -> Option<Self>
fn try_from_decimal(value: Decimal) -> Option<Self>
Rebuild the value from Decimal after generic numeric handling.
Source§impl Ord for Seconds
impl Ord for Seconds
1.21.0 (const: unstable) · 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 PartialOrd<Seconds> for Nat64
impl PartialOrd<Seconds> for Nat64
Source§impl PartialOrd<u64> for Seconds
impl PartialOrd<u64> for Seconds
Source§impl PartialOrd for Seconds
impl PartialOrd for Seconds
Source§impl PersistedStructuredFieldCodec for Seconds
impl PersistedStructuredFieldCodec for Seconds
Source§fn encode_persisted_structured_payload(&self) -> Result<Vec<u8>, InternalError>
fn encode_persisted_structured_payload(&self) -> Result<Vec<u8>, InternalError>
Encode this typed structured field into persisted structured payload bytes.
Source§fn decode_persisted_structured_payload(
bytes: &[u8],
) -> Result<Self, InternalError>
fn decode_persisted_structured_payload( bytes: &[u8], ) -> Result<Self, InternalError>
Decode this typed structured field from persisted structured payload bytes.
Source§impl RuntimeValueDecode for Seconds
impl RuntimeValueDecode for Seconds
fn from_value(value: &Value) -> Option<Self>
Source§impl RuntimeValueMeta for Seconds
impl RuntimeValueMeta for Seconds
fn kind() -> RuntimeValueKind
Source§impl SanitizeAuto for Seconds
impl SanitizeAuto for Seconds
fn sanitize_self(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl SanitizeCustom for Seconds
impl SanitizeCustom for Seconds
fn sanitize_custom(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl SubAssign<u64> for Seconds
impl SubAssign<u64> for Seconds
Source§fn sub_assign(&mut self, other: Nat64)
fn sub_assign(&mut self, other: Nat64)
Performs the
-= operation. Read moreSource§impl SubAssign for Seconds
impl SubAssign for Seconds
Source§fn sub_assign(&mut self, other: Seconds)
fn sub_assign(&mut self, other: Seconds)
Performs the
-= operation. Read moreSource§impl ValidateAuto for Seconds
impl ValidateAuto for Seconds
fn validate_self(&self, _ctx: &mut dyn VisitorContext)
Source§impl ValidateCustom for Seconds
impl ValidateCustom for Seconds
fn validate_custom(&self, _ctx: &mut dyn VisitorContext)
Source§impl Visitable for Seconds
impl Visitable for Seconds
fn drive(&self, visitor: &mut dyn VisitorCore)
fn drive_mut(&mut self, visitor: &mut dyn VisitorMutCore)
impl Copy for Seconds
impl Eq for Seconds
impl StructuralPartialEq for Seconds
Auto Trait Implementations§
impl Freeze for Seconds
impl RefUnwindSafe for Seconds
impl Send for Seconds
impl Sync for Seconds
impl Unpin for Seconds
impl UnsafeUnpin for Seconds
impl UnwindSafe for Seconds
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<T> KeyValueCodec for Twhere
T: RuntimeValueDecode + RuntimeValueEncode,
impl<T> KeyValueCodec for Twhere
T: RuntimeValueDecode + RuntimeValueEncode,
fn to_key_value(&self) -> Value
fn from_key_value(value: &Value) -> Option<T>
Source§impl<T> PersistedFieldMetaCodec for T
impl<T> PersistedFieldMetaCodec for T
Source§fn encode_persisted_slot_payload_by_meta(
&self,
field_name: &'static str,
) -> Result<Vec<u8>, InternalError>
fn encode_persisted_slot_payload_by_meta( &self, field_name: &'static str, ) -> Result<Vec<u8>, InternalError>
Encode one non-optional field payload through the type’s own
FieldTypeMeta storage contract.Source§fn decode_persisted_slot_payload_by_meta(
bytes: &[u8],
field_name: &'static str,
) -> Result<T, InternalError>
fn decode_persisted_slot_payload_by_meta( bytes: &[u8], field_name: &'static str, ) -> Result<T, InternalError>
Decode one non-optional field payload through the type’s own
FieldTypeMeta storage contract.Source§fn encode_persisted_option_slot_payload_by_meta(
value: &Option<T>,
field_name: &'static str,
) -> Result<Vec<u8>, InternalError>
fn encode_persisted_option_slot_payload_by_meta( value: &Option<T>, field_name: &'static str, ) -> Result<Vec<u8>, InternalError>
Encode one optional field payload through the inner type’s own
FieldTypeMeta storage contract.Source§fn decode_persisted_option_slot_payload_by_meta(
bytes: &[u8],
field_name: &'static str,
) -> Result<Option<T>, InternalError>
fn decode_persisted_option_slot_payload_by_meta( bytes: &[u8], field_name: &'static str, ) -> Result<Option<T>, InternalError>
Decode one optional field payload through the inner type’s own
FieldTypeMeta storage contract.