pub enum SerializeFormat {
Json,
}Expand description
The serialization format used to store a field value in the database.
When a field’s in-memory type does not map directly to a database column type, the value is serialized into a format the database can store (e.g., a JSON string column).
§Examples
use toasty_core::schema::app::SerializeFormat;
let fmt = SerializeFormat::Json;Variants§
Json
Serialize the value as JSON using serde_json.
Trait Implementations§
Source§impl Clone for SerializeFormat
impl Clone for SerializeFormat
Source§fn clone(&self) -> SerializeFormat
fn clone(&self) -> SerializeFormat
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 moreAuto Trait Implementations§
impl Freeze for SerializeFormat
impl RefUnwindSafe for SerializeFormat
impl Send for SerializeFormat
impl Sync for SerializeFormat
impl Unpin for SerializeFormat
impl UnwindSafe for SerializeFormat
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