pub struct JssSchema {
pub kind: JssKind,
/* private fields */
}Expand description
The schema node
Fields§
§kind: JssKindThe kind of this node
Implementations§
Source§impl JssSchema
impl JssSchema
pub fn property() -> Self
pub fn definition() -> Self
pub fn anything() -> Self
pub fn nothing() -> Self
pub fn top() -> Self
pub fn is_anything(&self) -> bool
pub fn is_noting(&self) -> bool
pub fn is_top(&self) -> bool
pub fn is_ref_type(&self) -> bool
Source§impl JssSchema
impl JssSchema
pub fn get_name(&self) -> &str
pub fn set_name<S>(&mut self, name: S)
pub fn get_type(&self) -> &JssType
pub fn set_type<S>(&mut self, typing: S)
pub fn has_description(&self) -> bool
pub fn get_description(&self) -> &str
pub fn set_description<S>(&mut self, description: S)
pub fn properties(&self) -> Iter<'_, String, JssSchema>
pub fn insert_property<K, V>(&mut self, key: K, value: V) -> Option<JssSchema>
pub fn attributes(&self) -> Iter<'_, String, JssValue>
pub fn insert_attribute<K, V>(&mut self, key: K, value: V) -> Option<JssValue>
pub fn definitions(&self) -> Iter<'_, String, JssSchema>
pub fn insert_definition<K, V>(&mut self, key: K, value: V) -> Option<JssSchema>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JssSchema
impl RefUnwindSafe for JssSchema
impl Send for JssSchema
impl Sync for JssSchema
impl Unpin for JssSchema
impl UnwindSafe for JssSchema
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