pub enum ResponseOutput {
Inline,
File {
path: String,
},
}Expand description
Where the response body goes.
Variants§
Inline
Into the answer as text, up to INLINE_MAX_BYTES.
File
Into the volume file at path, overwritten, parents created, counted
against the invocation’s write budget.
Trait Implementations§
Source§impl Clone for ResponseOutput
impl Clone for ResponseOutput
Source§impl Debug for ResponseOutput
impl Debug for ResponseOutput
Source§impl Default for ResponseOutput
impl Default for ResponseOutput
Source§impl<'de> Deserialize<'de> for ResponseOutput
impl<'de> Deserialize<'de> for ResponseOutput
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
impl Eq for ResponseOutput
Source§impl JsonSchema for ResponseOutput
impl JsonSchema for ResponseOutput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ResponseOutput
impl PartialEq for ResponseOutput
Source§impl Serialize for ResponseOutput
impl Serialize for ResponseOutput
impl StructuralPartialEq for ResponseOutput
Auto Trait Implementations§
impl Freeze for ResponseOutput
impl RefUnwindSafe for ResponseOutput
impl Send for ResponseOutput
impl Sync for ResponseOutput
impl Unpin for ResponseOutput
impl UnsafeUnpin for ResponseOutput
impl UnwindSafe for ResponseOutput
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