pub enum SpreadData {
Single(Vec<IndexMap<String, Value>>),
Multiple(Vec<SheetDataSet>),
}Variants§
Implementations§
Source§impl SpreadData
impl SpreadData
pub fn from_single(rows: Vec<IndexMap<String, Value>>) -> Self
pub fn from_multiple(sheet_data: &[SheetDataSet]) -> Self
pub fn first_sheet(&self) -> Vec<IndexMap<String, Value>>
pub fn sheets(&self) -> Vec<SheetDataSet>
pub fn to_json(&self) -> Value
Trait Implementations§
Source§impl Clone for SpreadData
impl Clone for SpreadData
Source§fn clone(&self) -> SpreadData
fn clone(&self) -> SpreadData
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 moreSource§impl Debug for SpreadData
impl Debug for SpreadData
Auto Trait Implementations§
impl Freeze for SpreadData
impl RefUnwindSafe for SpreadData
impl Send for SpreadData
impl Sync for SpreadData
impl Unpin for SpreadData
impl UnwindSafe for SpreadData
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