pub struct DataclassSerde { /* private fields */ }Implementations§
Source§impl DataclassSerde
impl DataclassSerde
pub fn new( class: PyObject, init_strategy: InitStrategy, field_serde_kv_list: Vec<(Py<PyString>, Box<dyn PyAnySerde>)>, ) -> PyResult<Self>
Trait Implementations§
Source§impl Clone for DataclassSerde
impl Clone for DataclassSerde
Source§fn clone(&self) -> DataclassSerde
fn clone(&self) -> DataclassSerde
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 PyAnySerde for DataclassSerde
impl PyAnySerde for DataclassSerde
fn append<'py>( &mut self, buf: &mut [u8], offset: usize, obj: &Bound<'py, PyAny>, ) -> PyResult<usize>
fn append_vec<'py>( &mut self, v: &mut Vec<u8>, start_addr: Option<usize>, obj: &Bound<'py, PyAny>, ) -> PyResult<()>
fn retrieve<'py>( &mut self, py: Python<'py>, buf: &[u8], offset: usize, ) -> PyResult<(Bound<'py, PyAny>, usize)>
fn append_option<'py>( &mut self, buf: &mut [u8], offset: usize, obj_option: &Option<&Bound<'py, PyAny>>, ) -> PyResult<usize>
fn append_option_vec<'py>( &mut self, v: &mut Vec<u8>, start_addr: Option<usize>, obj_option: &Option<&Bound<'py, PyAny>>, ) -> PyResult<()>
fn retrieve_option<'py>( &mut self, py: Python<'py>, buf: &[u8], offset: usize, ) -> PyResult<(Option<Bound<'py, PyAny>>, usize)>
Auto Trait Implementations§
impl Freeze for DataclassSerde
impl !RefUnwindSafe for DataclassSerde
impl !Send for DataclassSerde
impl !Sync for DataclassSerde
impl Unpin for DataclassSerde
impl !UnwindSafe for DataclassSerde
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