[−][src]Struct near_sdk::json_types::ValidAccountId
Helper class to validate account ID during serialization and deserializiation
Trait Implementations
impl AsRef<String> for ValidAccountId[src]
impl BorshDeserialize for ValidAccountId[src]
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>[src]
fn try_from_slice(v: &[u8]) -> Result<Self, Error>[src]
fn is_u8() -> bool[src]
impl BorshSerialize for ValidAccountId[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>[src]
fn try_to_vec(&self) -> Result<Vec<u8>, Error>[src]
fn is_u8() -> bool[src]
impl Clone for ValidAccountId[src]
fn clone(&self) -> ValidAccountId[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ValidAccountId[src]
impl<'de> Deserialize<'de> for ValidAccountId[src]
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>, [src]
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Eq for ValidAccountId[src]
impl From<ValidAccountId> for AccountId[src]
fn from(value: ValidAccountId) -> Self[src]
impl Ord for ValidAccountId[src]
fn cmp(&self, other: &ValidAccountId) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<ValidAccountId> for ValidAccountId[src]
fn eq(&self, other: &ValidAccountId) -> bool[src]
fn ne(&self, other: &ValidAccountId) -> bool[src]
impl PartialOrd<ValidAccountId> for ValidAccountId[src]
fn partial_cmp(&self, other: &ValidAccountId) -> Option<Ordering>[src]
fn lt(&self, other: &ValidAccountId) -> bool[src]
fn le(&self, other: &ValidAccountId) -> bool[src]
fn gt(&self, other: &ValidAccountId) -> bool[src]
fn ge(&self, other: &ValidAccountId) -> bool[src]
impl Serialize for ValidAccountId[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for ValidAccountId[src]
impl StructuralPartialEq for ValidAccountId[src]
impl<'_> TryFrom<&'_ str> for ValidAccountId[src]
type Error = Box<dyn Error>
The type returned in the event of a conversion error.
fn try_from(value: &str) -> Result<Self, Self::Error>[src]
impl TryFrom<String> for ValidAccountId[src]
Auto Trait Implementations
impl RefUnwindSafe for ValidAccountId
impl Send for ValidAccountId
impl Sync for ValidAccountId
impl Unpin for ValidAccountId
impl UnwindSafe for ValidAccountId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,