pub struct HttpStreamFormat {
pub content: Option<String>,
pub content_bin: Option<String>,
}
Expand description
HttpStreamFormat : Payload format for delivering to subscribers of HTTP streaming response bodies (stream
hold mode). One of content
or content-bin
must be specified.
Fields§
§content: Option<String>
A fragment of body data as a string.
content_bin: Option<String>
A fragment of body data as a base64-encoded binary blob.
Implementations§
Source§impl HttpStreamFormat
impl HttpStreamFormat
Sourcepub fn new() -> HttpStreamFormat
pub fn new() -> HttpStreamFormat
Payload format for delivering to subscribers of HTTP streaming response bodies (stream
hold mode). One of content
or content-bin
must be specified.
Trait Implementations§
Source§impl Clone for HttpStreamFormat
impl Clone for HttpStreamFormat
Source§fn clone(&self) -> HttpStreamFormat
fn clone(&self) -> HttpStreamFormat
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 HttpStreamFormat
impl Debug for HttpStreamFormat
Source§impl Default for HttpStreamFormat
impl Default for HttpStreamFormat
Source§fn default() -> HttpStreamFormat
fn default() -> HttpStreamFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpStreamFormat
impl<'de> Deserialize<'de> for HttpStreamFormat
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 HttpStreamFormat
impl PartialEq for HttpStreamFormat
Source§impl Serialize for HttpStreamFormat
impl Serialize for HttpStreamFormat
impl StructuralPartialEq for HttpStreamFormat
Auto Trait Implementations§
impl Freeze for HttpStreamFormat
impl RefUnwindSafe for HttpStreamFormat
impl Send for HttpStreamFormat
impl Sync for HttpStreamFormat
impl Unpin for HttpStreamFormat
impl UnwindSafe for HttpStreamFormat
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