pub struct Bytes(pub Vec<u8>);Expand description
A binary value. Serializes to a CBOR byte string; deserializes from a CBOR
byte string or a base64-encoded text string (the bare-base64 leniency for
schema-typed fields on JSON transports). Advertises contentEncoding: base64.
Tuple Fields§
§0: Vec<u8>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bytes
impl<'de> Deserialize<'de> for Bytes
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Bytes
Source§impl IntoResponse for Bytes
impl IntoResponse for Bytes
fn into_tool_events(self, default_language: &str) -> Vec<RawToolEvent>
Source§impl JsonSchema for Bytes
impl JsonSchema for Bytes
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§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnsafeUnpin for Bytes
impl UnwindSafe for Bytes
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