https://github.com/nercury/confluence-rs
Access and modify Atlassian Confluence pages from Rust
https://github.com/nercury/confluence-rs
Last synced: 4 months ago
JSON representation
Access and modify Atlassian Confluence pages from Rust
- Host: GitHub
- URL: https://github.com/nercury/confluence-rs
- Owner: Nercury
- License: apache-2.0
- Created: 2015-11-26T15:15:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-04T18:50:24.000Z (over 2 years ago)
- Last Synced: 2025-06-30T09:49:33.299Z (5 months ago)
- Language: Rust
- Size: 3.31 MB
- Stars: 23
- Watchers: 1
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Confluence for Rust
[](https://travis-ci.org/Nercury/confluence-rs)
Access and modify [Atlassian Confluence](https://www.atlassian.com/software/confluence/) pages from Rust.
## Usage
### Add dependency
Add dependency in your `Cargo.toml`:
```toml
[dependencies]
confluence = "0.4"
```
### Example to update page title
```rust
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](https://docs.rs/confluence)__.
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.