pub struct RenderOpts {
pub assume_binary: bool,
pub include_annotations: bool,
pub indent: usize,
}Expand description
Options controlling how a protobuf binary payload is rendered as text.
Fields§
§assume_binary: boolWhen true, always treat the input as raw protobuf binary.
When false, auto-detect: if the payload already carries the
#@ prototext: header it is returned unchanged (zero-copy fast path).
include_annotations: boolEmit inline comments with schema field names and types.
indent: usizeIndentation step in spaces.
Trait Implementations§
Source§impl Clone for RenderOpts
impl Clone for RenderOpts
Source§fn clone(&self) -> RenderOpts
fn clone(&self) -> RenderOpts
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 RenderOpts
impl Debug for RenderOpts
Auto Trait Implementations§
impl Freeze for RenderOpts
impl RefUnwindSafe for RenderOpts
impl Send for RenderOpts
impl Sync for RenderOpts
impl Unpin for RenderOpts
impl UnsafeUnpin for RenderOpts
impl UnwindSafe for RenderOpts
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