pub struct EmitOptions {
pub link_prefix: String,
pub theme: BTreeMap<String, String>,
}Expand description
How the file relates to the repo it describes.
Fields§
§link_prefix: StringThe prefix that takes a link from the output file’s directory
back to the surveyed root: ../../ for docs/architecture/x.c4,
./ for a file at the root.
theme: BTreeMap<String, String>The color per element kind (container, component, an external
kind), declared in the specification and applied as that kind’s
style. Kinds absent here get LikeC4’s default.
Implementations§
Source§impl EmitOptions
impl EmitOptions
Sourcepub fn for_output_path(output_path: &str) -> Self
pub fn for_output_path(output_path: &str) -> Self
Options for a file written at output_path, relative to the root
and /-separated.
Sourcepub fn with_theme(self, theme: BTreeMap<String, String>) -> Self
pub fn with_theme(self, theme: BTreeMap<String, String>) -> Self
The same options with a theme.
Trait Implementations§
Source§impl Clone for EmitOptions
impl Clone for EmitOptions
Source§impl Debug for EmitOptions
impl Debug for EmitOptions
impl Eq for EmitOptions
Source§impl PartialEq for EmitOptions
impl PartialEq for EmitOptions
impl StructuralPartialEq for EmitOptions
Auto Trait Implementations§
impl Freeze for EmitOptions
impl RefUnwindSafe for EmitOptions
impl Send for EmitOptions
impl Sync for EmitOptions
impl Unpin for EmitOptions
impl UnsafeUnpin for EmitOptions
impl UnwindSafe for EmitOptions
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