pub enum BlockDetails {
Paragraph(Box<ParagraphDetails>),
TableCell(Box<TableCellDetails>),
Raw(Value),
}Expand description
Eager semantic details with an unrestricted JSON representation for imported data.
Variants§
Implementations§
Source§impl BlockDetails
impl BlockDetails
pub fn to_json_value(&self) -> Value
Trait Implementations§
Source§impl Clone for BlockDetails
impl Clone for BlockDetails
Source§impl Debug for BlockDetails
impl Debug for BlockDetails
Source§impl<'de> Deserialize<'de> for BlockDetails
impl<'de> Deserialize<'de> for BlockDetails
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ParagraphDetails> for BlockDetails
impl From<ParagraphDetails> for BlockDetails
Source§fn from(details: ParagraphDetails) -> Self
fn from(details: ParagraphDetails) -> Self
Converts to this type from the input type.
Source§impl From<TableCellDetails> for BlockDetails
impl From<TableCellDetails> for BlockDetails
Source§fn from(details: TableCellDetails) -> Self
fn from(details: TableCellDetails) -> Self
Converts to this type from the input type.
Source§impl From<Value> for BlockDetails
impl From<Value> for BlockDetails
Source§impl PartialEq for BlockDetails
impl PartialEq for BlockDetails
Auto Trait Implementations§
impl Freeze for BlockDetails
impl RefUnwindSafe for BlockDetails
impl Send for BlockDetails
impl Sync for BlockDetails
impl Unpin for BlockDetails
impl UnsafeUnpin for BlockDetails
impl UnwindSafe for BlockDetails
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more