pub enum ParamWriterFormat {
Binary,
JSON,
}Expand description
Available serializers for ParamWriter.
§Extensions
- JSON:
.json - Binary:
.bin
§Example
use argmin_observer_paramwriter::ParamWriterFormat;
let bincode = ParamWriterFormat::Binary;
let json = ParamWriterFormat::JSON;Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ParamWriterFormat
impl Clone for ParamWriterFormat
Source§fn clone(&self) -> ParamWriterFormat
fn clone(&self) -> ParamWriterFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParamWriterFormat
impl Debug for ParamWriterFormat
Source§impl Default for ParamWriterFormat
impl Default for ParamWriterFormat
Source§fn default() -> ParamWriterFormat
fn default() -> ParamWriterFormat
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParamWriterFormat
impl PartialEq for ParamWriterFormat
Source§fn eq(&self, other: &ParamWriterFormat) -> bool
fn eq(&self, other: &ParamWriterFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ParamWriterFormat
impl Eq for ParamWriterFormat
impl StructuralPartialEq for ParamWriterFormat
Auto Trait Implementations§
impl Freeze for ParamWriterFormat
impl RefUnwindSafe for ParamWriterFormat
impl Send for ParamWriterFormat
impl Sync for ParamWriterFormat
impl Unpin for ParamWriterFormat
impl UnsafeUnpin for ParamWriterFormat
impl UnwindSafe for ParamWriterFormat
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