pub enum SerializerType {
Json,
Postcard,
}Expand description
Enumeration of supported serializer types.
Variants§
Implementations§
Source§impl SerializerType
impl SerializerType
Sourcepub fn deserialize<T: DeserializeOwned>(
&self,
bytes: &[u8],
) -> Result<T, ServerlessError>
pub fn deserialize<T: DeserializeOwned>( &self, bytes: &[u8], ) -> Result<T, ServerlessError>
Trait Implementations§
Source§impl Clone for SerializerType
impl Clone for SerializerType
Source§fn clone(&self) -> SerializerType
fn clone(&self) -> SerializerType
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 Debug for SerializerType
impl Debug for SerializerType
Source§impl PartialEq for SerializerType
impl PartialEq for SerializerType
impl Copy for SerializerType
impl Eq for SerializerType
impl StructuralPartialEq for SerializerType
Auto Trait Implementations§
impl Freeze for SerializerType
impl RefUnwindSafe for SerializerType
impl Send for SerializerType
impl Sync for SerializerType
impl Unpin for SerializerType
impl UnsafeUnpin for SerializerType
impl UnwindSafe for SerializerType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.