pub struct DocumentationGenerator { /* private fields */ }Expand description
Documentation generator for API operations
Implementations§
Source§impl DocumentationGenerator
impl DocumentationGenerator
Sourcepub const fn new(specs: BTreeMap<String, CachedSpec>) -> Self
pub const fn new(specs: BTreeMap<String, CachedSpec>) -> Self
Create a new documentation generator
Sourcepub fn generate_command_help(
&self,
api_name: &str,
tag: &str,
operation_id: &str,
) -> Result<String, Error>
pub fn generate_command_help( &self, api_name: &str, tag: &str, operation_id: &str, ) -> Result<String, Error>
Generate comprehensive help for a specific command Generate command help documentation
§Errors
Returns an error if the API or operation is not found
Generate interactive help menu
Auto Trait Implementations§
impl Freeze for DocumentationGenerator
impl RefUnwindSafe for DocumentationGenerator
impl Send for DocumentationGenerator
impl Sync for DocumentationGenerator
impl Unpin for DocumentationGenerator
impl UnsafeUnpin for DocumentationGenerator
impl UnwindSafe for DocumentationGenerator
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