pub struct ConfluenceApi { /* private fields */ }Expand description
Confluence Cloud REST API v2 backend.
Implementations§
Source§impl ConfluenceApi
impl ConfluenceApi
Sourcepub fn new(client: AtlassianClient) -> Self
pub fn new(client: AtlassianClient) -> Self
Creates a new Confluence API backend.
Source§impl ConfluenceApi
impl ConfluenceApi
Sourcepub async fn resolve_space_id(&self, space_key: &str) -> Result<String>
pub async fn resolve_space_id(&self, space_key: &str) -> Result<String>
Resolves a space key to a space ID via the Confluence API.
Sourcepub async fn create_page(
&self,
space_key: &str,
title: &str,
body_adf: &AdfDocument,
parent_id: Option<&str>,
) -> Result<String>
pub async fn create_page( &self, space_key: &str, title: &str, body_adf: &AdfDocument, parent_id: Option<&str>, ) -> Result<String>
Creates a new Confluence page.
Trait Implementations§
Source§impl AtlassianApi for ConfluenceApi
impl AtlassianApi for ConfluenceApi
Source§fn get_content<'a>(
&'a self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<ContentItem>> + Send + 'a>>
fn get_content<'a>( &'a self, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<ContentItem>> + Send + 'a>>
Fetches a content item by its identifier.
Source§fn update_content<'a>(
&'a self,
id: &'a str,
body_adf: &'a AdfDocument,
title: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>
fn update_content<'a>( &'a self, id: &'a str, body_adf: &'a AdfDocument, title: Option<&'a str>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>
Updates a content item’s body and optionally its title.
Source§fn verify_auth<'a>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>
fn verify_auth<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>
Verifies authentication and returns a display name.
Source§fn backend_name(&self) -> &'static str
fn backend_name(&self) -> &'static str
Returns the backend type name (“jira” or “confluence”).
Auto Trait Implementations§
impl Freeze for ConfluenceApi
impl !RefUnwindSafe for ConfluenceApi
impl Send for ConfluenceApi
impl Sync for ConfluenceApi
impl Unpin for ConfluenceApi
impl UnsafeUnpin for ConfluenceApi
impl !UnwindSafe for ConfluenceApi
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