pub struct BmsClient { /* private fields */ }
Implementations§
Source§impl BmsClient
impl BmsClient
pub fn new(username: &str, password: &str, timeout: Option<Duration>) -> Self
pub async fn get_metadata(&self) -> Result<Vec<MetadataJson>, Error>
pub async fn get_trend_data<Tz>(
&self,
log_id: i64,
start: DateTime<Tz>,
end: DateTime<Tz>,
) -> Result<Vec<TrendDataRaw>, Error>where
Tz: TimeZone,
Auto Trait Implementations§
impl Freeze for BmsClient
impl !RefUnwindSafe for BmsClient
impl Send for BmsClient
impl Sync for BmsClient
impl Unpin for BmsClient
impl !UnwindSafe for BmsClient
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