#[non_exhaustive]pub struct TextFormatJsonSchema {
pub name: String,
pub schema: Rest,
pub description: Option<String>,
pub strict: Option<Option<bool>>,
pub rest: Rest,
}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.name: String§schema: Rest§description: Option<String>§strict: Option<Option<bool>>§rest: RestImplementations§
Source§impl TextFormatJsonSchema
impl TextFormatJsonSchema
Sourcepub fn builder(name: String, schema: Rest) -> TextFormatJsonSchemaBuilder
pub fn builder(name: String, schema: Rest) -> TextFormatJsonSchemaBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for TextFormatJsonSchema
impl Clone for TextFormatJsonSchema
Source§impl Debug for TextFormatJsonSchema
impl Debug for TextFormatJsonSchema
Source§impl DeclaredFields for TextFormatJsonSchema
impl DeclaredFields for TextFormatJsonSchema
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for TextFormatJsonSchema
impl<'de> Deserialize<'de> for TextFormatJsonSchema
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 TextFormatJsonSchema
Source§impl PartialEq for TextFormatJsonSchema
impl PartialEq for TextFormatJsonSchema
Source§impl Serialize for TextFormatJsonSchema
impl Serialize for TextFormatJsonSchema
impl StructuralPartialEq for TextFormatJsonSchema
Auto Trait Implementations§
impl Freeze for TextFormatJsonSchema
impl RefUnwindSafe for TextFormatJsonSchema
impl Send for TextFormatJsonSchema
impl Sync for TextFormatJsonSchema
impl Unpin for TextFormatJsonSchema
impl UnsafeUnpin for TextFormatJsonSchema
impl UnwindSafe for TextFormatJsonSchema
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