mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-29 05:59:26 +00:00
proxmox-api/src/format.rs: improve docs
This commit is contained in:
parent
00f3a6575c
commit
4bca463944
@ -7,24 +7,28 @@ use super::router::{Router, SubRoute};
|
||||
use super::schema::*;
|
||||
use super::{ApiHandler, ApiMethod};
|
||||
|
||||
/// Enumerate different styles to display parameters/properties.
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum ParameterDisplayStyle {
|
||||
/// Used for properties in configuration files: ``key:``
|
||||
Config,
|
||||
//SonfigSub,
|
||||
/// Used for command line options: ``--key``
|
||||
Arg,
|
||||
/// Used for command line options passed as arguments: ``<key>``
|
||||
Fixed,
|
||||
}
|
||||
|
||||
/// CLI usage information format
|
||||
/// CLI usage information format.
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
pub enum DocumentationFormat {
|
||||
/// text, command line only (one line)
|
||||
/// Text, command line only (one line).
|
||||
Short,
|
||||
/// text, list all options
|
||||
/// Text, list all options.
|
||||
Long,
|
||||
/// text, include description
|
||||
/// Text, include description.
|
||||
Full,
|
||||
/// like full, but in reStructuredText format
|
||||
/// Like full, but in reStructuredText format.
|
||||
ReST,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user