pub struct DocumentConfig {
pub template_file: Option<String>,
pub result_file: Option<String>,
}Expand description
Configuration for documentation generation.
Specifies template and result files used for automatically generating documentation for ML-bins.
Fields§
§template_file: Option<String>The template file for documentation generation. If you set template_file = “template.md” in config.toml for rack “my_rack”, the structure is as follows:
- model_registry_repository/
- {rack_name}/
- template.md
- config.toml
- 0.1/
- 0.2/
- {rack_name}/
result_file: Option<String>The result file for documentation generation in each version directory. For now, only JSON format is supported. If you set result_file = “result.json” in config.toml for rack “my_rack”, the structure is as follows:
- model_registry_repository/
- {rack_name}/
- template.md
- config.toml
- 0.1/
- result.json
- 0.2/
- result.json
- {rack_name}/
Trait Implementations§
Source§impl Debug for DocumentConfig
impl Debug for DocumentConfig
Source§impl Default for DocumentConfig
impl Default for DocumentConfig
Source§fn default() -> DocumentConfig
fn default() -> DocumentConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentConfigwhere
DocumentConfig: Default,
impl<'de> Deserialize<'de> for DocumentConfigwhere
DocumentConfig: Default,
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 DocumentConfig
impl RefUnwindSafe for DocumentConfig
impl Send for DocumentConfig
impl Sync for DocumentConfig
impl Unpin for DocumentConfig
impl UnwindSafe for DocumentConfig
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