Struct adapter::primitives::ValidatorId
pub struct ValidatorId(_);
Implementations
impl ValidatorId
impl ValidatorId
pub fn as_bytes(&self) -> &[u8; 20]
pub fn to_address(self) -> Address
pub fn as_address(&self) -> &Address
pub fn inner(&self) -> &[u8; 20]
Trait Implementations
impl AsRef<[u8]> for ValidatorId
impl AsRef<[u8]> for ValidatorId
impl Clone for ValidatorId
impl Clone for ValidatorId
fn clone(&self) -> ValidatorId
fn clone(&self) -> ValidatorId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for ValidatorId
impl Debug for ValidatorId
impl<'de> Deserialize<'de> for ValidatorId
impl<'de> Deserialize<'de> for ValidatorId
fn deserialize<__D>(
__deserializer: __D
) -> Result<ValidatorId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ValidatorId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Display for ValidatorId
impl Display for ValidatorId
impl From<&[u8; 20]> for ValidatorId
impl From<&[u8; 20]> for ValidatorId
fn from(bytes: &[u8; 20]) -> ValidatorId
fn from(bytes: &[u8; 20]) -> ValidatorId
Converts to this type from the input type.
impl From<&Address> for ValidatorId
impl From<&Address> for ValidatorId
fn from(address: &Address) -> ValidatorId
fn from(address: &Address) -> ValidatorId
Converts to this type from the input type.
impl From<&Lazy<Address, fn() -> Address>> for ValidatorId
impl From<&Lazy<Address, fn() -> Address>> for ValidatorId
fn from(address: &Lazy<Address, fn() -> Address>) -> ValidatorId
fn from(address: &Lazy<Address, fn() -> Address>) -> ValidatorId
Converts to this type from the input type.
impl From<Address> for ValidatorId
impl From<Address> for ValidatorId
fn from(address: Address) -> ValidatorId
fn from(address: Address) -> ValidatorId
Converts to this type from the input type.
impl<'a> FromSql<'a> for ValidatorId
impl<'a> FromSql<'a> for ValidatorId
fn from_sql(
ty: &Type,
raw: &'a [u8]
) -> Result<ValidatorId, Box<dyn Error + Sync + Send + 'static, Global>>
fn from_sql(
ty: &Type,
raw: &'a [u8]
) -> Result<ValidatorId, Box<dyn Error + Sync + Send + 'static, Global>>
Creates a new value of this type from a buffer of data of the specified
Postgres
Type
in its binary format. Read morefn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be created from the specified
Postgres
Type
. Read moreimpl FromStr for ValidatorId
impl FromStr for ValidatorId
type Err = Error
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ValidatorId, <ValidatorId as FromStr>::Err>
fn from_str(s: &str) -> Result<ValidatorId, <ValidatorId as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreimpl Hash for ValidatorId
impl Hash for ValidatorId
impl Ord for ValidatorId
impl Ord for ValidatorId
fn cmp(&self, other: &ValidatorId) -> Ordering
fn cmp(&self, other: &ValidatorId) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<ValidatorId> for ValidatorId
impl PartialEq<ValidatorId> for ValidatorId
fn eq(&self, other: &ValidatorId) -> bool
fn eq(&self, other: &ValidatorId) -> bool
impl PartialOrd<ValidatorId> for ValidatorId
impl PartialOrd<ValidatorId> for ValidatorId
fn partial_cmp(&self, other: &ValidatorId) -> Option<Ordering>
fn partial_cmp(&self, other: &ValidatorId) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Serialize for ValidatorId
impl Serialize for ValidatorId
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl ToETHChecksum for ValidatorId
impl ToETHChecksum for ValidatorId
fn to_checksum(&self) -> String
impl ToSql for ValidatorId
impl ToSql for ValidatorId
fn to_sql(
&self,
ty: &Type,
w: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send + 'static, Global>>
fn to_sql(
&self,
ty: &Type,
w: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send + 'static, Global>>
Converts the value of
self
into the binary format of the specified
Postgres Type
, appending it to out
. Read morefn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be converted to the specified
Postgres
Type
. Read morefn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send + 'static, Global>>
fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send + 'static, Global>>
An adaptor method used internally by Rust-Postgres. Read more
sourcefn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Specify the encode format
impl TryFrom<&String> for ValidatorId
impl TryFrom<&String> for ValidatorId
type Error = Error
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
value: &String
) -> Result<ValidatorId, <ValidatorId as TryFrom<&String>>::Error>
fn try_from(
value: &String
) -> Result<ValidatorId, <ValidatorId as TryFrom<&String>>::Error>
Performs the conversion.
impl TryFrom<&str> for ValidatorId
impl TryFrom<&str> for ValidatorId
type Error = Error
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
value: &str
) -> Result<ValidatorId, <ValidatorId as TryFrom<&str>>::Error>
fn try_from(
value: &str
) -> Result<ValidatorId, <ValidatorId as TryFrom<&str>>::Error>
Performs the conversion.
impl TryFrom<Value> for ValidatorId
impl TryFrom<Value> for ValidatorId
type Error = DomainError
type Error = DomainError
The type returned in the event of a conversion error.
fn try_from(
value: Value
) -> Result<ValidatorId, <ValidatorId as TryFrom<Value>>::Error>
fn try_from(
value: Value
) -> Result<ValidatorId, <ValidatorId as TryFrom<Value>>::Error>
Performs the conversion.
impl Copy for ValidatorId
impl Eq for ValidatorId
impl StructuralEq for ValidatorId
impl StructuralPartialEq for ValidatorId
Auto Trait Implementations
impl RefUnwindSafe for ValidatorId
impl Send for ValidatorId
impl Sync for ValidatorId
impl Unpin for ValidatorId
impl UnwindSafe for ValidatorId
Blanket Implementations
impl<T, U> AsByteSlice<T> for Uwhere
T: ToByteSlice,
U: AsRef<[T]> + ?Sized,
impl<T, U> AsByteSlice<T> for Uwhere
T: ToByteSlice,
U: AsRef<[T]> + ?Sized,
fn as_byte_slice(&self) -> &[u8] ⓘ
impl<U> AsSliceOf for Uwhere
U: AsRef<[u8]> + ?Sized,
impl<U> AsSliceOf for Uwhere
U: AsRef<[u8]> + ?Sized,
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
sourcefn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
Returns a reference to
self
as a ToSql
trait object.sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
fn to_hex(&self) -> String
fn to_hex_prefixed(&self) -> String
sourceimpl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
sourcefn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
) Read moresourcefn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
) Read more