pub struct FormatInfo {
pub id: String,
pub reads: Vec<String>,
pub writes: String,
pub root: String,
pub schema: Option<String>,
pub whole: Option<String>,
pub lift: Option<String>,
pub embed: Option<String>,
pub render: Option<String>,
pub transduce: Option<String>,
pub loss: Vec<String>,
}Expand description
One format a translation reads and writes: one entry of dmog formats,
as its package’s translation parts describe it.
Fields§
§id: StringWhat TranslateOptions names the format
by.
reads: Vec<String>What its documents read as, tree or records, in order of
preference.
writes: StringWhat its render writes from, tree or records.
root: StringThe root its render needs: object, array or any.
schema: Option<String>The tree its events carry, where it is not a plain one.
whole: Option<String>Why its documents are read whole, where they are.
lift: Option<String>The entry of its lift, from its events to the shape it reads as.
embed: Option<String>The entry of its embedding, from a plain tree into its schema.
render: Option<String>The entry of its render, or json or csv for the renderer it
takes.
transduce: Option<String>The entry of its transducer part, which streams its documents.
loss: Vec<String>What a document written in it does not keep, a sentence each.
Trait Implementations§
Source§impl Clone for FormatInfo
impl Clone for FormatInfo
Source§impl Debug for FormatInfo
impl Debug for FormatInfo
impl Eq for FormatInfo
Source§impl PartialEq for FormatInfo
impl PartialEq for FormatInfo
impl StructuralPartialEq for FormatInfo
Auto Trait Implementations§
impl Forget for FormatInfo
impl Freeze for FormatInfo
impl Move for FormatInfo
impl RefUnwindSafe for FormatInfo
impl Send for FormatInfowhere
RawVecInner: Send,
impl Sync for FormatInfowhere
RawVecInner: Sync,
impl Unpin for FormatInfo
impl UnsafeUnpin for FormatInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for FormatInfowhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.