pub struct BotillonClient { /* private fields */ }Implementations§
Source§impl BotillonClient
impl BotillonClient
pub fn new(token: impl Into<String>) -> Self
pub fn with_base_url( token: impl Into<String>, base_url: impl Into<String>, ) -> Self
pub fn post_stats(&self, stats: &Stats) -> Result<StatsResponse, BotillonError>
pub fn heartbeat(&self) -> Result<HeartbeatResponse, BotillonError>
pub fn post_commands( &self, commands: &[Value], ) -> Result<CommandsResponse, BotillonError>
pub fn post_profile( &self, profile: &Profile, ) -> Result<ProfileResponse, BotillonError>
Auto Trait Implementations§
impl !RefUnwindSafe for BotillonClient
impl !UnwindSafe for BotillonClient
impl Freeze for BotillonClient
impl Send for BotillonClient
impl Sync for BotillonClient
impl Unpin for BotillonClient
impl UnsafeUnpin for BotillonClient
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