pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn builder() -> ClientBuilder<()>
Sourcepub async fn create_page(&self, input: CreatePageInput) -> Result<Page>
pub async fn create_page(&self, input: CreatePageInput) -> Result<Page>
Create a page.
Sourcepub async fn update_page(
&self,
id: &str,
input: UpdatePageInput,
) -> Result<Page>
pub async fn update_page( &self, id: &str, input: UpdatePageInput, ) -> Result<Page>
Update a page.
Sourcepub async fn delete_page(&self, id: &str) -> Result<()>
pub async fn delete_page(&self, id: &str) -> Result<()>
Delete a page.
Sourcepub async fn search_content(
&self,
cql: &str,
limit: Option<u32>,
) -> Result<SearchResult>
pub async fn search_content( &self, cql: &str, limit: Option<u32>, ) -> Result<SearchResult>
Search content using CQL.
Sourcepub async fn list_spaces(&self, limit: Option<u32>) -> Result<SpacesResult>
pub async fn list_spaces(&self, limit: Option<u32>) -> Result<SpacesResult>
List all spaces.
Sourcepub async fn get_page_attachments(&self, id: &str) -> Result<Vec<Attachment>>
pub async fn get_page_attachments(&self, id: &str) -> Result<Vec<Attachment>>
Get page attachments.
Sourcepub async fn get_space_content(
&self,
space_key: &str,
limit: Option<u32>,
) -> Result<SearchResult>
pub async fn get_space_content( &self, space_key: &str, limit: Option<u32>, ) -> Result<SearchResult>
Get pages in a space.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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