Struct reflectapi_schema::Schema
source · pub struct Schema {
pub name: String,
pub description: String,
pub functions: Vec<Function>,
pub input_types: Typespace,
pub output_types: Typespace,
}
Fields§
§name: String
§description: String
§functions: Vec<Function>
§input_types: Typespace
§output_types: Typespace
Implementations§
source§impl Schema
impl Schema
pub fn new() -> Self
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn functions(&self) -> Iter<'_, Function>
pub fn input_types(&self) -> &Typespace
pub fn output_types(&self) -> &Typespace
pub fn extend(&mut self, other: Self)
pub fn prepend_path(&mut self, path: &str)
pub fn consolidate_types(&mut self) -> Vec<String>
pub fn get_type(&self, name: &str) -> Option<&Type>
pub fn rename_type(&mut self, search_string: &str, replacer: &str)
pub fn rename_input_type(&mut self, search_string: &str, replacer: &str)
pub fn rename_output_type(&mut self, search_string: &str, replacer: &str)
pub fn fold_transparent_types(&mut self)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Schema
impl<'de> Deserialize<'de> for Schema
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
Auto Trait Implementations§
impl !Freeze for Schema
impl !RefUnwindSafe for Schema
impl Send for Schema
impl !Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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