pub struct TableCell {
pub content: String,
pub is_header: bool,
pub colspan: Option<u32>,
pub rowspan: Option<u32>,
}Expand description
A single table cell.
Maps to XHTML <th> or <td> inside JATS <table>.
Fields§
§content: StringCell text content (XML tags stripped).
is_header: boolWhether this is a header cell (<th>) vs data cell (<td>).
colspan: Option<u32>Column span. From @colspan attribute.
rowspan: Option<u32>Row span. From @rowspan attribute.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TableCell
impl<'de> Deserialize<'de> for TableCell
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TableCell, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TableCell, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TableCell
impl Serialize for TableCell
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TableCell
Auto Trait Implementations§
impl Freeze for TableCell
impl RefUnwindSafe for TableCell
impl Send for TableCell
impl Sync for TableCell
impl Unpin for TableCell
impl UnwindSafe for TableCell
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