Struct serde_pickle::de::DeOptions
source · [−]pub struct DeOptions { /* private fields */ }
Expand description
Options for deserializing.
Implementations
sourceimpl DeOptions
impl DeOptions
sourcepub fn new() -> Self
pub fn new() -> Self
Construct with default options:
- don’t decode strings saved as STRING opcodes (only protocols 0-2) as UTF-8
- don’t replace unresolvable globals by
None
sourcepub fn decode_strings(self) -> Self
pub fn decode_strings(self) -> Self
Activate decoding strings saved as STRING.
sourcepub fn replace_unresolved_globals(self) -> Self
pub fn replace_unresolved_globals(self) -> Self
Activate replacing unresolved globals by None
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DeOptions
impl Send for DeOptions
impl Sync for DeOptions
impl Unpin for DeOptions
impl UnwindSafe for DeOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more