pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn new(username: String, api_key: String, base_url: String) -> Session
pub async fn get_page_by_id(&self, id: u64) -> Result<Page, ()>
pub async fn get_spaces(&self) -> Result<Vec<Space>, ()>
pub fn get_pages_for_space<'life0, 'life_self, 'async_recursion>(
&'life_self self,
space_key: &'life0 str,
next: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Page>, ()>> + Send + 'async_recursion>>where
'life0: 'async_recursion,
'life_self: 'async_recursion,
pub async fn add_new_page( &self, space_key: String, ancestor: Option<u64>, title: String, body: Option<String>, ) -> Result<Page, ()>
pub async fn update_page( &self, space_key: String, id: u64, new_version: u64, title: String, body: Option<String>, ) -> Result<Page, ()>
Auto Trait Implementations§
impl Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
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