oasgen_core

Trait OaSchema

Source
pub trait OaSchema {
    // Required method
    fn schema() -> Schema;

    // Provided method
    fn schema_ref() -> ReferenceOr<Schema> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl OaSchema for Value

Source§

impl OaSchema for bool

Source§

impl OaSchema for f32

Source§

impl OaSchema for f64

Source§

impl OaSchema for i8

Source§

impl OaSchema for i16

Source§

impl OaSchema for i32

Source§

impl OaSchema for i64

Source§

impl OaSchema for isize

Source§

impl OaSchema for u8

Source§

impl OaSchema for u16

Source§

impl OaSchema for u32

Source§

impl OaSchema for u64

Source§

impl OaSchema for ()

Source§

impl OaSchema for usize

Source§

impl OaSchema for String

Source§

impl OaSchema for Uri

Source§

impl OaSchema for Version

Source§

impl<K, V> OaSchema for HashMap<K, V>
where V: OaSchema,

Source§

impl<T> OaSchema for Option<T>
where T: OaSchema,

Source§

impl<T> OaSchema for Vec<T>
where T: OaSchema,

Implementors§