pub struct SerializedDataId(/* private fields */);Expand description
A unique identifier for a piece of data that will be serialized from the server to the client.
Implementations§
Source§impl SerializedDataId
impl SerializedDataId
Sourcepub fn new(id: usize) -> Self
pub fn new(id: usize) -> Self
Create a new instance of SerializedDataId.
Sourcepub fn into_inner(self) -> usize
pub fn into_inner(self) -> usize
Consume into the inner usize identifier.
Trait Implementations§
Source§impl Clone for SerializedDataId
impl Clone for SerializedDataId
Source§fn clone(&self) -> SerializedDataId
fn clone(&self) -> SerializedDataId
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 SerializedDataId
impl Debug for SerializedDataId
Source§impl Default for SerializedDataId
impl Default for SerializedDataId
Source§fn default() -> SerializedDataId
fn default() -> SerializedDataId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SerializedDataId
impl<'de> Deserialize<'de> for SerializedDataId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SerializedDataId> for ErrorId
impl From<SerializedDataId> for ErrorId
Source§fn from(value: SerializedDataId) -> Self
fn from(value: SerializedDataId) -> Self
Converts to this type from the input type.
Source§impl Hash for SerializedDataId
impl Hash for SerializedDataId
Source§impl PartialEq for SerializedDataId
impl PartialEq for SerializedDataId
Source§impl Serialize for SerializedDataId
impl Serialize for SerializedDataId
impl Eq for SerializedDataId
impl StructuralPartialEq for SerializedDataId
Auto Trait Implementations§
impl Freeze for SerializedDataId
impl RefUnwindSafe for SerializedDataId
impl Send for SerializedDataId
impl Sync for SerializedDataId
impl Unpin for SerializedDataId
impl UnwindSafe for SerializedDataId
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