pub struct LibreLinkClient { /* private fields */ }Implementations§
Source§impl LibreLinkClient
impl LibreLinkClient
pub async fn new( credentials: Credentials, region: Option<String>, ) -> Result<Self, Box<dyn Error>>
pub fn from_token(token: String, region: Option<String>) -> Self
pub async fn get_connections( &self, ) -> Result<ResponseConnections, Box<dyn Error>>
pub async fn get_connection_graph( &self, connection_id: &str, ) -> Result<ConnectionGraphResponse, Box<dyn Error>>
pub async fn get_glucose_history( &self, num_periods: i32, period: i32, ) -> Result<GlucoseHistoryRequest, Box<dyn Error>>
pub async fn get_log_book( &self, connection_id: &str, ) -> Result<LogBookRequest, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for LibreLinkClient
impl !RefUnwindSafe for LibreLinkClient
impl Send for LibreLinkClient
impl Sync for LibreLinkClient
impl Unpin for LibreLinkClient
impl !UnwindSafe for LibreLinkClient
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