pub struct PaywallResponse {
pub status: u16,
pub headers: HashMap<String, String>,
pub body: Option<Vec<u8>>,
pub json: Option<Value>,
}Expand description
Framework-agnostic response carried back through the middleware.
Fields§
§status: u16§headers: HashMap<String, String>§body: Option<Vec<u8>>§json: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for PaywallResponse
impl Clone for PaywallResponse
Source§fn clone(&self) -> PaywallResponse
fn clone(&self) -> PaywallResponse
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 PaywallResponse
impl Debug for PaywallResponse
Source§impl Default for PaywallResponse
impl Default for PaywallResponse
Source§fn default() -> PaywallResponse
fn default() -> PaywallResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PaywallResponse
impl RefUnwindSafe for PaywallResponse
impl Send for PaywallResponse
impl Sync for PaywallResponse
impl Unpin for PaywallResponse
impl UnsafeUnpin for PaywallResponse
impl UnwindSafe for PaywallResponse
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