#[repr(C)]pub struct PrintOptions {
pub add_whitespace: bool,
pub always_print_fields_with_no_presence: bool,
pub always_print_enums_as_ints: bool,
pub preserve_proto_field_names: bool,
pub unquote_int64_if_possible: bool,
}Fields§
§add_whitespace: bool§always_print_fields_with_no_presence: bool§always_print_enums_as_ints: bool§preserve_proto_field_names: bool§unquote_int64_if_possible: boolImplementations§
Trait Implementations§
Source§impl CopyNew for PrintOptions
impl CopyNew for PrintOptions
Source§unsafe fn copy_new(
other: &PrintOptions,
this: Pin<&mut MaybeUninit<PrintOptions>>,
)
unsafe fn copy_new( other: &PrintOptions, this: Pin<&mut MaybeUninit<PrintOptions>>, )
Synthesized copy constructor.
Source§impl Drop for PrintOptions
impl Drop for PrintOptions
Source§fn drop(self: &mut PrintOptions)
fn drop(self: &mut PrintOptions)
Synthesized destructor.
Source§impl ExternType for PrintOptions
impl ExternType for PrintOptions
Source§impl MakeCppStorage for PrintOptions
impl MakeCppStorage for PrintOptions
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut PrintOptions
unsafe fn allocate_uninitialized_cpp_storage() -> *mut PrintOptions
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
Source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut PrintOptions)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut PrintOptions)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Source§impl MoveNew for PrintOptions
impl MoveNew for PrintOptions
Source§unsafe fn move_new(
other: Pin<MoveRef<'_, PrintOptions>>,
this: Pin<&mut MaybeUninit<PrintOptions>>,
)
unsafe fn move_new( other: Pin<MoveRef<'_, PrintOptions>>, this: Pin<&mut MaybeUninit<PrintOptions>>, )
Synthesized move constructor.
impl UniquePtrTarget for PrintOptions
impl VectorElement for PrintOptions
impl WeakPtrTarget for PrintOptions
Auto Trait Implementations§
impl Freeze for PrintOptions
impl RefUnwindSafe for PrintOptions
impl Send for PrintOptions
impl Sync for PrintOptions
impl Unpin for PrintOptions
impl UnwindSafe for PrintOptions
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