pub struct StructDoc { /* private fields */ }
Expand description
Information about the struct.
Implementations§
Source§impl StructDoc
impl StructDoc
Sourcepub fn add_param(
&mut self,
name: &str,
description: &str,
environment_variable: Option<String>,
default: Option<String>,
example: Option<String>,
is_mandatory: bool,
)
pub fn add_param( &mut self, name: &str, description: &str, environment_variable: Option<String>, default: Option<String>, example: Option<String>, is_mandatory: bool, )
Add information about one parameter.
Sourcepub fn merge_struct_doc(&self, s2: &StructDoc) -> StructDoc
pub fn merge_struct_doc(&self, s2: &StructDoc) -> StructDoc
Merge two StructDoc into a third one.
pub fn get_ordered_data(&self) -> Vec<&FieldDoc>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StructDoc
impl RefUnwindSafe for StructDoc
impl Send for StructDoc
impl Sync for StructDoc
impl Unpin for StructDoc
impl UnwindSafe for StructDoc
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