pub struct StaticResource {
pub code: StatusCode,
pub content_type: HeaderValue,
pub body: Bytes,
}Fields§
§code: StatusCode§content_type: HeaderValue§body: BytesTrait Implementations§
Source§impl Clone for StaticResource
impl Clone for StaticResource
Source§fn clone(&self) -> StaticResource
fn clone(&self) -> StaticResource
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 moreAuto Trait Implementations§
impl !Freeze for StaticResource
impl RefUnwindSafe for StaticResource
impl Send for StaticResource
impl Sync for StaticResource
impl Unpin for StaticResource
impl UnwindSafe for StaticResource
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