#[non_exhaustive]pub struct Config {
pub schema: Option<String>,
}Expand description
Everything a JSON track declares about itself, beyond its mode and name.
Start from default and chain the setters. The mode is not in here: it is
fixed by which producer you create. To list the track in an application’s own catalog section
instead of json, pass that section’s entry (see IntoRendition).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema: Option<String>An optional identifier for the shape of each value, typically a JSON Schema URL.
Implementations§
Trait Implementations§
Source§impl<E: CatalogExt> IntoRendition<E, JsonConfig> for Config
impl<E: CatalogExt> IntoRendition<E, JsonConfig> for Config
Source§type Config = JsonConfig
type Config = JsonConfig
The catalog entry, embedding
D.Source§fn into_rendition(self) -> JsonConfig
fn into_rendition(self) -> JsonConfig
Build the catalog entry.
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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