Struct simplenote::Simplenote
[−]
[src]
pub struct Simplenote { /* fields omitted */ }
API Client. All communications with the API go through this struct
Examples
let client = Simplenote::new("username", "password").uwrap();
Methods
impl Simplenote
[src]
fn new<T: Display, U: Display>(username: T, password: U) -> Result<Simplenote>
fn get_note(&self, note_id: &str) -> Result<Note>
fn get_note_with_version<T: Into<Option<u32>>>(
&self,
note_id: &str,
version: T
) -> Result<Note>
&self,
note_id: &str,
version: T
) -> Result<Note>
fn add_note<I: Into<Note>>(&self, note: I) -> Result<Note>
fn update_note(&self, note: &mut Note) -> Result<Note>
fn trash_note(&self, note_id: &str) -> Result<Note>
fn delete_note(&self, note_id: &str) -> Result<()>
fn notes(&self) -> Result<Vec<Note>>
Get notes list
TODO: implement filters