pub struct NotionDataBase { /* private fields */ }
Implementations§
Source§impl NotionDataBase
impl NotionDataBase
pub fn new(content: Vec<Vec<DataBaseElement>>) -> Self
pub fn get_line_count(&self) -> usize
pub fn get_column_count(&self) -> usize
Sourcepub fn get_first_at(&self, line: usize) -> Option<DataBaseElement>
pub fn get_first_at(&self, line: usize) -> Option<DataBaseElement>
Return the first element of a line
Sourcepub fn get_last_at(&self, line: usize) -> Option<DataBaseElement>
👎Deprecated: Notion not follow any logic in data base index
pub fn get_last_at(&self, line: usize) -> Option<DataBaseElement>
Return the last element of a line
Sourcepub fn get_at(&self, line: usize, column: usize) -> Option<DataBaseElement>
pub fn get_at(&self, line: usize, column: usize) -> Option<DataBaseElement>
Get an element of the data base using line and column index
pub fn get( &self, parser: &NotionResponseParser, line: &str, column_name: &str, ) -> Option<DataBaseElement>
Sourcepub fn get_line_list(&self, parser: &NotionResponseParser) -> Vec<String>
pub fn get_line_list(&self, parser: &NotionResponseParser) -> Vec<String>
Return the list of all the titles content as Vec
Sourcepub fn get_column_list(&self) -> Vec<String>
pub fn get_column_list(&self) -> Vec<String>
Return the list of all the columns names as Vec
Auto Trait Implementations§
impl Freeze for NotionDataBase
impl RefUnwindSafe for NotionDataBase
impl Send for NotionDataBase
impl Sync for NotionDataBase
impl Unpin for NotionDataBase
impl UnwindSafe for NotionDataBase
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