pub struct StructInfo {
pub name: String,
pub description: String,
pub parameters: Vec<Parameter>,
pub is_optional: bool,
pub is_list: bool,
}
Fields§
§name: String
§description: String
§parameters: Vec<Parameter>
§is_optional: bool
§is_list: bool
Implementations§
Source§impl StructInfo
impl StructInfo
pub fn wrap_info(self, new_name: String) -> Parameter
pub fn override_description(self, new_description: String) -> StructInfo
pub fn set_optional(self, is_optional: bool) -> StructInfo
pub fn set_list(self, is_list: bool) -> StructInfo
Trait Implementations§
Source§impl Clone for StructInfo
impl Clone for StructInfo
Source§fn clone(&self) -> StructInfo
fn clone(&self) -> StructInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StructInfo
impl Debug for StructInfo
Source§impl<'de> Deserialize<'de> for StructInfo
impl<'de> Deserialize<'de> for StructInfo
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
Source§impl PartialEq for StructInfo
impl PartialEq for StructInfo
Source§impl Serialize for StructInfo
impl Serialize for StructInfo
impl StructuralPartialEq for StructInfo
Auto Trait Implementations§
impl Freeze for StructInfo
impl RefUnwindSafe for StructInfo
impl Send for StructInfo
impl Sync for StructInfo
impl Unpin for StructInfo
impl UnwindSafe for StructInfo
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