pub struct TextOf;Expand description
A field that is a text, kept resolved (Text::resolve):
#[data(with = "yog_data::TextOf")].
Trait Implementations§
Source§impl With<String> for TextOf
impl With<String> for TextOf
Source§fn encode(f: &F, w: &mut Writer)
fn encode(f: &F, w: &mut Writer)
The field in the binary form, straight: its value encoded unless
the codec knows better.
Source§fn write_text(f: &F, w: &mut Writer)
fn write_text(f: &F, w: &mut Writer)
The field as text, straight: its value as text unless the codec
knows better (see
Schema::write_text).Source§fn decode(d: &mut Decoder<'_>) -> Option<F>
fn decode(d: &mut Decoder<'_>) -> Option<F>
The field from the binary form, straight;
None sends the read the
slow way (see Schema::decode).Auto Trait Implementations§
impl Freeze for TextOf
impl RefUnwindSafe for TextOf
impl Send for TextOf
impl Sync for TextOf
impl Unpin for TextOf
impl UnsafeUnpin for TextOf
impl UnwindSafe for TextOf
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