pub struct StreamSpec {
pub doc: Doc,
pub mime: Vec<String>,
pub required: bool,
}Expand description
Streams, structured results, errors
Fields§
§doc: Doc§mime: Vec<String>§required: boolTrait Implementations§
Source§impl Clone for StreamSpec
impl Clone for StreamSpec
Source§fn clone(&self) -> StreamSpec
fn clone(&self) -> StreamSpec
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 StreamSpec
impl Debug for StreamSpec
Source§impl From<&StreamSpec> for StreamSpec
impl From<&StreamSpec> for StreamSpec
Source§fn from(s: &StreamSpec) -> StreamSpec
fn from(s: &StreamSpec) -> StreamSpec
Converts to this type from the input type.
Source§impl From<&StreamSpec> for StreamSpec
impl From<&StreamSpec> for StreamSpec
Source§fn from(s: &StreamSpec) -> StreamSpec
fn from(s: &StreamSpec) -> StreamSpec
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamSpec
impl RefUnwindSafe for StreamSpec
impl Send for StreamSpec
impl Sync for StreamSpec
impl Unpin for StreamSpec
impl UnsafeUnpin for StreamSpec
impl UnwindSafe for StreamSpec
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