Struct influx_db_client::client::Client[][src]

pub struct Client { /* fields omitted */ }
Expand description

The client to influxdb

Implementations

Create a new influxdb client with http

Create a new influxdb client with custom reqwest’s client.

Change the client’s database

Change the client’s user

Set the client’s jwt token

View the current db name

Query whether the corresponding database exists, return bool

Query the version of the database and return the version number

Write a point to the database

Write multiple points to the database

Query and return data, the data type is Option<Vec<Node>>

Query and return data, the data type is Option<Vec<Node>>

Drop measurement

Create a new database in InfluxDB.

Drop a database from InfluxDB.

Create a new user in InfluxDB.

Drop a user from InfluxDB.

Change the password of an existing user.

Grant cluster administration privileges to a user.

Revoke cluster administration privileges from a user.

Grant a privilege on a database to a user. :param privilege: the privilege to grant, one of ‘read’, ‘write’ or ‘all’. The string is case-insensitive

Revoke a privilege on a database from a user. :param privilege: the privilege to grant, one of ‘read’, ‘write’ or ‘all’. The string is case-insensitive

Create a retention policy for a database. :param duration: the duration of the new retention policy. Durations such as 1h, 90m, 12h, 7d, and 4w, are all supported and mean 1 hour, 90 minutes, 12 hours, 7 day, and 4 weeks, respectively. For infinite retention – meaning the data will never be deleted – use ‘INF’ for duration. The minimum retention period is 1 hour.

Drop an existing retention policy for a database.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

connecting for default database test and host http://localhost:8086

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more