pub struct ResolvedInput {
pub value: String,
pub chain: Option<String>,
}Expand description
Result of resolving a user input through the address book.
When the input matches an address book entry (either via @label
prefix or direct address match), both the resolved address and chain
are returned. Handlers should use the resolved chain when the user
hasn’t explicitly overridden it.
Fields§
§value: StringThe resolved address/token string.
chain: Option<String>The chain from the address book entry (if resolved).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedInput
impl RefUnwindSafe for ResolvedInput
impl Send for ResolvedInput
impl Sync for ResolvedInput
impl Unpin for ResolvedInput
impl UnsafeUnpin for ResolvedInput
impl UnwindSafe for ResolvedInput
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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