pub struct FormatOutput {
pub content: String,
pub had_errors: bool,
pub error_messages: Vec<String>,
}Expand description
Result of formatting code blocks in a document.
Fields§
§content: StringThe formatted content (may be partially formatted if errors occurred).
had_errors: boolWhether any errors occurred during formatting.
error_messages: Vec<String>Error messages for blocks that couldn’t be formatted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormatOutput
impl RefUnwindSafe for FormatOutput
impl Send for FormatOutput
impl Sync for FormatOutput
impl Unpin for FormatOutput
impl UnsafeUnpin for FormatOutput
impl UnwindSafe for FormatOutput
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