Access and modify Atlassian Confluence pages from Rust.
Requires Rust 1.4.0
.
Add dependency in your Cargo.toml
:
[dependencies]
confluence = "0.1"
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");
}
Read full documentation.
MIT