pub struct Bytes<const N: usize>(/* private fields */);Expand description
Bounded opaque bytes; consumers validate principal bytes using their existing principal type. IC Wire defines no new identity type.
Implementations§
Trait Implementations§
Source§impl<'de, const N: usize> Deserialize<'de> for Bytes<N>
impl<'de, const N: usize> Deserialize<'de> for Bytes<N>
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<const N: usize> Eq for Bytes<N>
impl<const N: usize> StructuralPartialEq for Bytes<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Bytes<N>
impl<const N: usize> RefUnwindSafe for Bytes<N>
impl<const N: usize> Send for Bytes<N>
impl<const N: usize> Sync for Bytes<N>
impl<const N: usize> Unpin for Bytes<N>
impl<const N: usize> UnsafeUnpin for Bytes<N>
impl<const N: usize> UnwindSafe for Bytes<N>
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