Struct near_sdk::json_types::ValidAccountId [−][src]
Helper class to validate account ID during serialization and deserializiation
Implementations
impl ValidAccountId
[src]
Trait Implementations
impl AsRef<String> for ValidAccountId
[src]
impl BorshDeserialize for ValidAccountId
[src]
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSerialize for ValidAccountId
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for ValidAccountId
[src]
fn clone(&self) -> ValidAccountId
[src]
pub 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 Display for ValidAccountId
[src]
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]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[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]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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,
pub 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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,