pub struct Client { /* private fields */ }
Expand description
Client for InfluxDB
Implementations§
Source§impl Client
impl Client
pub fn new<T>(host: T, token: T) -> Client
pub fn insert_to_stdout(self) -> Self
pub fn with_bucket<T: Into<String>>(self, bucket: T) -> Self
pub fn with_org<T: Into<String>>(self, org: T) -> Self
pub fn with_org_id<T: Into<String>>(self, org_id: T) -> Self
pub fn with_precision(self, precision: Precision) -> Self
pub fn precision(&self) -> &str
pub async fn insert_points<'a, I: IntoIterator<Item = &'a (impl PointSerialize + 'a)>>( &self, points: I, options: TimestampOptions, ) -> Result<(), InfluxError>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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