pub struct ValidatedLabel {
pub tokens: Vec<EnsNameToken>,
pub label_type: LabelType,
}
Expand description
Represents a validated ENS label as result of the validate_label
function.
Contains the original tokenized label and the type of the label.
Fields§
§tokens: Vec<EnsNameToken>
§label_type: LabelType
Trait Implementations§
Source§impl Clone for ValidatedLabel
impl Clone for ValidatedLabel
Source§fn clone(&self) -> ValidatedLabel
fn clone(&self) -> ValidatedLabel
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 ValidatedLabel
impl Debug for ValidatedLabel
Source§impl PartialEq for ValidatedLabel
impl PartialEq for ValidatedLabel
impl Eq for ValidatedLabel
impl StructuralPartialEq for ValidatedLabel
Auto Trait Implementations§
impl Freeze for ValidatedLabel
impl RefUnwindSafe for ValidatedLabel
impl Send for ValidatedLabel
impl Sync for ValidatedLabel
impl Unpin for ValidatedLabel
impl UnwindSafe for ValidatedLabel
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more