pub struct SerializeOptions { /* private fields */ }
Available on crate feature
serde
only.Expand description
Mainly used to enable compression when serializing the final outer value. For intermediate serialization steps, the function in the module should be used instead.
Implementations§
Source§impl SerializeOptions
impl SerializeOptions
pub fn with_compression(self, compression: bool) -> Self
pub fn serialize_into_writer<W, T>( &self, writer: W, value: &T, ) -> PolarsResult<()>
pub fn deserialize_from_reader<T, R>(&self, reader: R) -> PolarsResult<T>where
T: DeserializeOwned,
R: Read,
pub fn serialize_to_bytes<T>(&self, value: &T) -> PolarsResult<Vec<u8>>where
T: Serialize,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SerializeOptions
impl RefUnwindSafe for SerializeOptions
impl Send for SerializeOptions
impl Sync for SerializeOptions
impl Unpin for SerializeOptions
impl UnwindSafe for SerializeOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more