pub struct BazaarOutput {
pub output_type: String,
pub format: Option<String>,
pub example: Option<Value>,
}Expand description
Output specification for a bazaar discovery entry.
Fields§
§output_type: StringResponse content type (e.g., "json", "text").
format: Option<String>Additional format information.
example: Option<Value>Example response value.
Implementations§
Source§impl BazaarOutput
impl BazaarOutput
Sourcepub fn builder() -> BazaarOutputBuilder
pub fn builder() -> BazaarOutputBuilder
Create an instance of BazaarOutput using the builder syntax
Trait Implementations§
Source§impl Clone for BazaarOutput
impl Clone for BazaarOutput
Source§fn clone(&self) -> BazaarOutput
fn clone(&self) -> BazaarOutput
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 BazaarOutput
impl Debug for BazaarOutput
Source§impl<'de> Deserialize<'de> for BazaarOutput
impl<'de> Deserialize<'de> for BazaarOutput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BazaarOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BazaarOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for BazaarOutput
impl JsonSchema for BazaarOutput
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 Serialize for BazaarOutput
impl Serialize for BazaarOutput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BazaarOutput
impl RefUnwindSafe for BazaarOutput
impl Send for BazaarOutput
impl Sync for BazaarOutput
impl Unpin for BazaarOutput
impl UnsafeUnpin for BazaarOutput
impl UnwindSafe for BazaarOutput
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