pub struct LnurlAuthRequestDetails {
pub k1: String,
pub action: Option<String>,
pub domain: String,
pub url: String,
}Expand description
Wrapped in a [LnurlAuth], this is the result of [parse] when given a LNURL-auth endpoint.
It represents the endpoint’s parameters for the LNURL workflow.
Fields§
§k1: StringHex encoded 32 bytes of challenge
action: Option<String>When available, one of: register, login, link, auth
domain: StringIndicates the domain of the LNURL-auth service, to be shown to the user when asking for auth confirmation, as per LUD-04 spec.
url: StringIndicates the URL of the LNURL-auth service, including the query arguments. This will be extended with the signed challenge and the linking key, then called in the second step of the workflow.
Trait Implementations§
Source§impl Clone for LnurlAuthRequestDetails
impl Clone for LnurlAuthRequestDetails
Source§fn clone(&self) -> LnurlAuthRequestDetails
fn clone(&self) -> LnurlAuthRequestDetails
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 LnurlAuthRequestDetails
impl Debug for LnurlAuthRequestDetails
Source§impl<'de> Deserialize<'de> for LnurlAuthRequestDetails
impl<'de> Deserialize<'de> for LnurlAuthRequestDetails
Source§fn 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
Source§impl From<LnurlAuthRequestDetails> for LnurlAuthRequestDetails
impl From<LnurlAuthRequestDetails> for LnurlAuthRequestDetails
Auto Trait Implementations§
impl Freeze for LnurlAuthRequestDetails
impl RefUnwindSafe for LnurlAuthRequestDetails
impl Send for LnurlAuthRequestDetails
impl Sync for LnurlAuthRequestDetails
impl Unpin for LnurlAuthRequestDetails
impl UnwindSafe for LnurlAuthRequestDetails
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request