pub struct ExactAccountNumber {
pub value: u64,
}Expand description
Like AccountNumber, except FromStr and deserializing JSON require exact round-trip conversion
Fields§
§value: u64Implementations§
Trait Implementations§
Source§impl Clone for ExactAccountNumber
impl Clone for ExactAccountNumber
Source§fn clone(&self) -> ExactAccountNumber
fn clone(&self) -> ExactAccountNumber
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 ExactAccountNumber
impl Debug for ExactAccountNumber
Source§impl Default for ExactAccountNumber
impl Default for ExactAccountNumber
Source§fn default() -> ExactAccountNumber
fn default() -> ExactAccountNumber
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExactAccountNumber
impl<'de> Deserialize<'de> for ExactAccountNumber
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 Display for ExactAccountNumber
impl Display for ExactAccountNumber
Source§impl From<AccountNumber> for ExactAccountNumber
impl From<AccountNumber> for ExactAccountNumber
Source§fn from(n: AccountNumber) -> Self
fn from(n: AccountNumber) -> Self
Converts to this type from the input type.
Source§impl From<ExactAccountNumber> for AccountNumber
impl From<ExactAccountNumber> for AccountNumber
Source§fn from(n: ExactAccountNumber) -> Self
fn from(n: ExactAccountNumber) -> Self
Converts to this type from the input type.
Source§impl From<u64> for ExactAccountNumber
impl From<u64> for ExactAccountNumber
Source§impl FromStr for ExactAccountNumber
impl FromStr for ExactAccountNumber
Source§impl InputType for ExactAccountNumber
impl InputType for ExactAccountNumber
Source§type RawValueType = ExactAccountNumber
type RawValueType = ExactAccountNumber
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 OutputType for ExactAccountNumber
impl OutputType for ExactAccountNumber
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 ExactAccountNumber
impl Pack for ExactAccountNumber
Source§impl PartialEq for ExactAccountNumber
impl PartialEq for ExactAccountNumber
Source§impl ScalarType for ExactAccountNumber
impl ScalarType for ExactAccountNumber
Source§impl Serialize for ExactAccountNumber
impl Serialize for ExactAccountNumber
Source§impl ToKey for ExactAccountNumber
impl ToKey for ExactAccountNumber
Source§impl<'a> Unpack<'a> for ExactAccountNumber
impl<'a> Unpack<'a> for ExactAccountNumber
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 ExactAccountNumber
impl Eq for ExactAccountNumber
impl StructuralPartialEq for ExactAccountNumber
Auto Trait Implementations§
impl Freeze for ExactAccountNumber
impl RefUnwindSafe for ExactAccountNumber
impl Send for ExactAccountNumber
impl Sync for ExactAccountNumber
impl Unpin for ExactAccountNumber
impl UnsafeUnpin for ExactAccountNumber
impl UnwindSafe for ExactAccountNumber
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> 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.