pub enum StreamDetect {
Never,
BodyFlag(&'static str),
BodyValue(&'static str, &'static str),
BodyFlagOrMultipart(&'static str),
Always,
}Expand description
How to tell a streaming request from a buffered one at this ingress.
Variants§
Never
Never streams.
BodyFlag(&'static str)
A boolean body field ("stream") decides; classification promotes
the operation to its streaming sibling when set.
BodyValue(&'static str, &'static str)
A string body field must equal the declared value.
BodyFlagOrMultipart(&'static str)
A boolean field accepted from JSON or a multipart form field. Media endpoints arrive as multipart and cannot be classified through JSON.
Always
The endpoint itself is the streaming form (:streamGenerateContent).
Trait Implementations§
Source§impl Clone for StreamDetect
impl Clone for StreamDetect
Source§fn clone(&self) -> StreamDetect
fn clone(&self) -> StreamDetect
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 moreimpl Copy for StreamDetect
Source§impl Debug for StreamDetect
impl Debug for StreamDetect
impl Eq for StreamDetect
Source§impl PartialEq for StreamDetect
impl PartialEq for StreamDetect
impl StructuralPartialEq for StreamDetect
Auto Trait Implementations§
impl Freeze for StreamDetect
impl RefUnwindSafe for StreamDetect
impl Send for StreamDetect
impl Sync for StreamDetect
impl Unpin for StreamDetect
impl UnsafeUnpin for StreamDetect
impl UnwindSafe for StreamDetect
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