pub struct ReconstructorConfig {
pub indent_str: String,
pub include_comments: bool,
pub sort_fields: bool,
}Expand description
Configuration for proto reconstruction
Fields§
§indent_str: StringIndentation string (default: 2 spaces)
include_comments: boolInclude source code comments if available
sort_fields: boolSort fields by number
Implementations§
Source§impl ReconstructorConfig
impl ReconstructorConfig
Sourcepub fn indent_str(self, s: impl Into<String>) -> Self
pub fn indent_str(self, s: impl Into<String>) -> Self
Sets the indentation string
Sourcepub fn include_comments(self, include: bool) -> Self
pub fn include_comments(self, include: bool) -> Self
Sets whether to include comments
Sourcepub fn sort_fields(self, sort: bool) -> Self
pub fn sort_fields(self, sort: bool) -> Self
Sets whether to sort fields by number
Trait Implementations§
Source§impl Clone for ReconstructorConfig
impl Clone for ReconstructorConfig
Source§fn clone(&self) -> ReconstructorConfig
fn clone(&self) -> ReconstructorConfig
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 ReconstructorConfig
impl Debug for ReconstructorConfig
Auto Trait Implementations§
impl Freeze for ReconstructorConfig
impl RefUnwindSafe for ReconstructorConfig
impl Send for ReconstructorConfig
impl Sync for ReconstructorConfig
impl Unpin for ReconstructorConfig
impl UnwindSafe for ReconstructorConfig
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