pub struct ExportSettings {
pub format: ExportFormat,
pub module_roots: Vec<String>,
pub module_depth: usize,
pub children: ChildIncludeMode,
pub min_code: usize,
pub max_rows: usize,
pub redact: RedactMode,
pub meta: bool,
pub strip_prefix: Option<String>,
}Expand description
Settings for file-level export (tokmd export).
Fields§
§format: ExportFormatOutput format.
module_roots: Vec<String>Module roots (see ModuleSettings).
module_depth: usizeModule depth (see ModuleSettings).
children: ChildIncludeModeHow to handle embedded languages.
min_code: usizeDrop rows with fewer than N code lines.
max_rows: usizeStop after emitting N rows (0 = unlimited).
redact: RedactModeRedaction mode.
meta: boolInclude a meta record.
strip_prefix: Option<String>Strip this prefix from paths.
Trait Implementations§
Source§impl Clone for ExportSettings
impl Clone for ExportSettings
Source§fn clone(&self) -> ExportSettings
fn clone(&self) -> ExportSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExportSettings
impl Debug for ExportSettings
Source§impl Default for ExportSettings
impl Default for ExportSettings
Source§fn default() -> ExportSettings
fn default() -> ExportSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExportSettings
impl<'de> Deserialize<'de> for ExportSettings
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExportSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExportSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ExportSettings
impl Serialize for ExportSettings
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ExportSettings
impl RefUnwindSafe for ExportSettings
impl Send for ExportSettings
impl Sync for ExportSettings
impl Unpin for ExportSettings
impl UnsafeUnpin for ExportSettings
impl UnwindSafe for ExportSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more