Struct leptos_spin::response_options::ResponseOptions
source · pub struct ResponseOptions { /* private fields */ }
Implementations§
source§impl ResponseOptions
impl ResponseOptions
pub fn status(&self) -> Option<u16>
pub fn set_status(&self, status: u16)
pub fn status_is_set(&self) -> bool
pub fn headers(&self) -> Headers
pub fn insert_header(&self, name: &str, value: impl Into<Vec<u8>>)
pub fn append_header(&self, name: &str, value: &[u8])
pub fn default_without_headers() -> Self
Trait Implementations§
source§impl Clone for ResponseOptions
impl Clone for ResponseOptions
source§fn clone(&self) -> ResponseOptions
fn clone(&self) -> ResponseOptions
Returns a copy 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 ResponseOptions
impl Debug for ResponseOptions
source§impl Default for ResponseOptions
impl Default for ResponseOptions
source§fn default() -> ResponseOptions
fn default() -> ResponseOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResponseOptions
impl RefUnwindSafe for ResponseOptions
impl Send for ResponseOptions
impl Sync for ResponseOptions
impl Unpin for ResponseOptions
impl UnwindSafe for ResponseOptions
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> 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