pub struct ThingsCloudClient {
pub email: String,
pub password: String,
pub history_key: Option<String>,
pub head_index: i64,
/* private fields */
}Fields§
§email: String§password: String§history_key: Option<String>§head_index: i64Implementations§
Source§impl ThingsCloudClient
impl ThingsCloudClient
pub fn new(email: String, password: String) -> Result<Self>
pub fn authenticate(&mut self) -> Result<String>
pub fn get_items_page(&self, start_index: i64) -> Result<Value>
pub fn get_all_items(&mut self) -> Result<RawState>
pub fn commit( &mut self, changes: BTreeMap<String, WireObject>, ancestor_index: Option<i64>, ) -> Result<i64>
pub fn set_task_status( &mut self, task_uuid: &str, status: i32, entity: Option<String>, stop_date: Option<f64>, ) -> Result<i64>
Trait Implementations§
Source§impl Clone for ThingsCloudClient
impl Clone for ThingsCloudClient
Source§fn clone(&self) -> ThingsCloudClient
fn clone(&self) -> ThingsCloudClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThingsCloudClient
impl !RefUnwindSafe for ThingsCloudClient
impl Send for ThingsCloudClient
impl Sync for ThingsCloudClient
impl Unpin for ThingsCloudClient
impl UnsafeUnpin for ThingsCloudClient
impl !UnwindSafe for ThingsCloudClient
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