pub struct TypeDescription {
pub name: Type,
pub summary: String,
pub formats: Vec<Format>,
pub axes: Vec<Axis>,
}Expand description
A type, described once: what an agent reads to write an op that takes it correctly (standard §1.5).
Fields§
§name: TypeIts name.
summary: StringOne paragraph: what it is.
formats: Vec<Format>The formats it can be stored in.
axes: Vec<Axis>For arrays, its axes in order.
Trait Implementations§
Source§impl Clone for TypeDescription
impl Clone for TypeDescription
Source§impl Debug for TypeDescription
impl Debug for TypeDescription
Source§impl<'de> Deserialize<'de> for TypeDescription
impl<'de> Deserialize<'de> for TypeDescription
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 TypeDescription
Source§impl JsonSchema for TypeDescription
impl JsonSchema for TypeDescription
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 TypeDescription
impl PartialEq for TypeDescription
Source§impl Serialize for TypeDescription
impl Serialize for TypeDescription
impl StructuralPartialEq for TypeDescription
Auto Trait Implementations§
impl Forget for TypeDescription
impl Freeze for TypeDescriptionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Format>: Freeze,
PhantomData<Axis>: Freeze,
impl Move for TypeDescription
impl RefUnwindSafe for TypeDescription
impl Send for TypeDescriptionwhere
RawVecInner: Send,
impl Sync for TypeDescriptionwhere
RawVecInner: Sync,
impl Unpin for TypeDescription
impl UnsafeUnpin for TypeDescriptionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Format>: UnsafeUnpin,
PhantomData<Axis>: UnsafeUnpin,
impl UnwindSafe for TypeDescriptionwhere
RawVecInner: UnwindSafe,
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