pub enum Kind {
Show 14 variants
    String,
    Object,
    Integer,
    Decimal,
    Boolean,
    Record {
        name: String,
    },
    OrType {
        name: String,
        variant: Option<String>,
        full_variant: Option<String>,
    },
    List {
        kind: Box<Kind>,
    },
    Optional {
        kind: Box<Kind>,
    },
    UI {
        name: Option<String>,
        subsection_source: bool,
        is_web_component: bool,
    },
    Constant {
        kind: Box<Kind>,
    },
    Void,
    Module,
    KwArgs,
}Variants§
Implementations§
Source§impl Kind
 
impl Kind
pub fn get_name(&self) -> String
pub fn is_same_as(&self, other: &Self) -> bool
pub fn into_kind_data(self) -> KindData
pub fn string() -> Kind
pub fn integer() -> Kind
pub fn decimal() -> Kind
pub fn boolean() -> Kind
pub fn module() -> Kind
pub fn kwargs() -> Kind
pub fn ui() -> Kind
pub fn ui_with_name(name: &str) -> Kind
pub fn web_ui_with_name(name: &str) -> Kind
pub fn subsection_ui() -> Kind
pub fn object() -> Kind
pub fn void() -> Kind
pub fn record(name: &str) -> Kind
pub fn or_type(name: &str) -> Kind
pub fn or_type_with_variant( name: &str, variant: &str, full_variant: &str, ) -> Kind
pub fn into_list(self) -> Kind
pub fn into_optional(self) -> Kind
pub fn inner(self) -> Kind
pub fn mut_inner(&mut self) -> &mut Kind
pub fn ref_inner(&self) -> &Kind
pub fn inner_list(self) -> Kind
pub fn ref_inner_list(&self) -> &Kind
pub fn is_list(&self) -> bool
pub fn is_subsection_ui(&self) -> bool
pub fn is_ui(&self) -> bool
pub fn is_optional(&self) -> bool
pub fn is_record(&self) -> bool
pub fn is_or_type(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_module(&self) -> bool
pub fn is_kwargs(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_boolean(&self) -> bool
pub fn is_decimal(&self) -> bool
pub fn is_void(&self) -> bool
pub fn get_or_type(&self) -> Option<(String, Option<String>, Option<String>)>
pub fn get_record_name(&self) -> Option<&str>
pub fn get_or_type_name(&self) -> Option<&str>
pub fn is_or_type_with_variant( &self, or_type_name: &str, variant_name: &str, ) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Kind
 
impl<'de> Deserialize<'de> for Kind
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 StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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