confluence 0.3.0

Access and modify Atlassian Confluence pages from Rust
confluence-0.3.0 doesn't have any documentation.

Confluence for Rust

Linux

Access and modify Atlassian Confluence pages from Rust.

Usage

Requires Rust 1.4.0.

Add dependency

Add dependency in your Cargo.toml:

[dependencies]
confluence = "0.1"

Example to update page title

extern crate confluence;

fn main() {
    // Get `Page` struct.
    let mut page = session
        .get_page_by_title("SomeSpaceKey", "Page Title")
        .expect("failed to fetch the page");

    // Change the title.
    page.title = "New Page Title".into();

    // Convert `Page` struct to `UpdatePage` and store it.
    session.store_page(page.into())
        .expect("failed to update the page");
}

Reference

Read full documentation.

License

MIT