pub struct Text;Trait Implementations§
Source§impl Value for Text
impl Value for Text
const NAME: &'static str = "harmos_domain::model::storage::codec::Text"
const KIND: Kind<Definition> = Kind::String
type Native = String
fn postcard_write(value: &<Text as Value>::Native, bytes: &mut Vec<u8>)
fn postcard_size(value: &<Text as Value>::Native) -> usize
fn postcard_memory(input: &mut Reader<'_>) -> Result<usize, MessageError>
fn postcard_read( input: &mut Reader<'_>, ) -> Result<<Text as Value>::Native, MessageError>
const CARDINALITY: Cardinality = Cardinality::Required
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
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