Struct dsnp_graph_core::dsnp::schema::SchemaHandler
source · pub struct SchemaHandler;
Expand description
A utility to handle serialization and deserialization on specified schemas
Implementations§
source§impl SchemaHandler
impl SchemaHandler
pub fn read_public_key(data: &[u8]) -> DsnpGraphResult<DsnpPublicKey>
pub fn write_public_key(key: &DsnpPublicKey) -> DsnpGraphResult<Vec<u8>>
pub fn read_public_graph_chunk( data: &[u8] ) -> DsnpGraphResult<DsnpUserPublicGraphChunk>
pub fn write_public_graph_chunk( chunk: &DsnpUserPublicGraphChunk ) -> DsnpGraphResult<Vec<u8>>
pub fn read_inner_graph(data: &[u8]) -> DsnpGraphResult<DsnpInnerGraph>
pub fn write_inner_graph( inner_graph: &DsnpInnerGraph ) -> DsnpGraphResult<Vec<u8>>
pub fn read_private_graph_chunk( data: &[u8] ) -> DsnpGraphResult<DsnpUserPrivateGraphChunk>
pub fn write_private_graph_chunk( chunk: &DsnpUserPrivateGraphChunk ) -> DsnpGraphResult<Vec<u8>>
Auto Trait Implementations§
impl RefUnwindSafe for SchemaHandler
impl Send for SchemaHandler
impl Sync for SchemaHandler
impl Unpin for SchemaHandler
impl UnwindSafe for SchemaHandler
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