pub struct HttpAuthorizationPlan {
pub method: String,
pub url: String,
pub payload_sha256: String,
pub authorization_header: String,
pub event: SignedNostrEvent,
pub allow_authorization_on_redirect: bool,
}Expand description
Immutable NIP-98 authorization result for platform HTTP adapters.
Fields§
§method: StringUppercase HTTP method bound by the event.
url: StringExact normalized URL bound by the event.
payload_sha256: StringLowercase payload SHA-256, or empty when the request has no body.
Complete Nostr <base64-event-json> header value.
event: SignedNostrEventSigned authorization event for diagnostics-free validation.
Redirects require a fresh plan; adapters must not forward this header.
Trait Implementations§
Source§impl Clone for HttpAuthorizationPlan
impl Clone for HttpAuthorizationPlan
Source§fn clone(&self) -> HttpAuthorizationPlan
fn clone(&self) -> HttpAuthorizationPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpAuthorizationPlan
impl Debug for HttpAuthorizationPlan
Source§impl PartialEq for HttpAuthorizationPlan
impl PartialEq for HttpAuthorizationPlan
Source§fn eq(&self, other: &HttpAuthorizationPlan) -> bool
fn eq(&self, other: &HttpAuthorizationPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HttpAuthorizationPlan
impl StructuralPartialEq for HttpAuthorizationPlan
Auto Trait Implementations§
impl !Freeze for HttpAuthorizationPlan
impl RefUnwindSafe for HttpAuthorizationPlan
impl Send for HttpAuthorizationPlan
impl Sync for HttpAuthorizationPlan
impl Unpin for HttpAuthorizationPlan
impl UnsafeUnpin for HttpAuthorizationPlan
impl UnwindSafe for HttpAuthorizationPlan
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,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more