Struct primitives::validator::ValidatorId
source · pub struct ValidatorId(_);
Implementations
Trait Implementations
sourceimpl AsRef<[u8]> for ValidatorId
impl AsRef<[u8]> for ValidatorId
sourceimpl Clone for ValidatorId
impl Clone for ValidatorId
sourcefn 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 moresourceimpl Debug for ValidatorId
impl Debug for ValidatorId
sourceimpl<'de> Deserialize<'de> for ValidatorId
impl<'de> Deserialize<'de> for ValidatorId
sourcefn 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
sourceimpl Display for ValidatorId
impl Display for ValidatorId
sourceimpl From<&[u8; 20]> for ValidatorId
impl From<&[u8; 20]> for ValidatorId
sourceimpl From<&Address> for ValidatorId
impl From<&Address> for ValidatorId
sourceimpl From<Address> for ValidatorId
impl From<Address> for ValidatorId
sourceimpl<'a> FromSql<'a> for ValidatorId
impl<'a> FromSql<'a> for ValidatorId
sourcefn from_sql(
ty: &Type,
raw: &'a [u8]
) -> Result<Self, Box<dyn Error + Sync + Send>>
fn from_sql(
ty: &Type,
raw: &'a [u8]
) -> Result<Self, Box<dyn Error + Sync + Send>>
Creates a new value of this type from a buffer of data of the specified
Postgres
Type
in its binary format. Read moresourcefn 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 moresourceimpl FromStr for ValidatorId
impl FromStr for ValidatorId
sourceimpl Hash for ValidatorId
impl Hash for ValidatorId
sourceimpl Ord for ValidatorId
impl Ord for ValidatorId
sourcefn 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
sourceimpl PartialEq<ValidatorId> for ValidatorId
impl PartialEq<ValidatorId> for ValidatorId
sourcefn eq(&self, other: &ValidatorId) -> bool
fn eq(&self, other: &ValidatorId) -> bool
sourceimpl PartialOrd<ValidatorId> for ValidatorId
impl PartialOrd<ValidatorId> for ValidatorId
sourcefn 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 moresourceimpl Serialize for ValidatorId
impl Serialize for ValidatorId
sourceimpl ToETHChecksum for ValidatorId
impl ToETHChecksum for ValidatorId
fn to_checksum(&self) -> String
sourceimpl ToSql for ValidatorId
impl ToSql for ValidatorId
sourcefn to_sql(
&self,
ty: &Type,
w: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql(
&self,
ty: &Type,
w: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Converts the value of
self
into the binary format of the specified
Postgres Type
, appending it to out
. Read moresourcefn 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 moresourcefn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
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
sourceimpl TryFrom<&String> for ValidatorId
impl TryFrom<&String> for ValidatorId
sourceimpl TryFrom<&str> for ValidatorId
impl TryFrom<&str> for ValidatorId
sourceimpl TryFrom<Value> for ValidatorId
impl TryFrom<Value> for ValidatorId
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<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
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