pub struct StaticContentHttp {
pub header: Option<Vec<StaticContentHttpHeaderInner>>,
pub content: Vec<u8>,
}Fields§
§header: Option<Vec<StaticContentHttpHeaderInner>>§content: Vec<u8>base64 encoded content
Implementations§
Source§impl StaticContentHttp
impl StaticContentHttp
pub fn new(content: Vec<u8>) -> StaticContentHttp
Trait Implementations§
Source§impl Clone for StaticContentHttp
impl Clone for StaticContentHttp
Source§fn clone(&self) -> StaticContentHttp
fn clone(&self) -> StaticContentHttp
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 StaticContentHttp
impl Debug for StaticContentHttp
Source§impl Default for StaticContentHttp
impl Default for StaticContentHttp
Source§fn default() -> StaticContentHttp
fn default() -> StaticContentHttp
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StaticContentHttp
impl<'de> Deserialize<'de> for StaticContentHttp
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 PartialEq for StaticContentHttp
impl PartialEq for StaticContentHttp
Source§impl Serialize for StaticContentHttp
impl Serialize for StaticContentHttp
impl StructuralPartialEq for StaticContentHttp
Auto Trait Implementations§
impl Freeze for StaticContentHttp
impl RefUnwindSafe for StaticContentHttp
impl Send for StaticContentHttp
impl Sync for StaticContentHttp
impl Unpin for StaticContentHttp
impl UnwindSafe for StaticContentHttp
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