pub struct CreateAdder<'client> { /* private fields */ }
Expand description
A function returned by Client::create_and_add
.
Implementations§
Source§impl<'client> CreateAdder<'client>
impl<'client> CreateAdder<'client>
Sourcepub fn row(
&mut self,
name: &str,
format: &str,
t: &NaiveDateTime,
cols: &[&dyn FromValue],
)
pub fn row( &mut self, name: &str, format: &str, t: &NaiveDateTime, cols: &[&dyn FromValue], )
Add a single row
If the series name
doesn’t exist, creates it. If it does,
then the existing format must match format
. Then adds
a record.
If you pass multiple rows for the same series, then the timestamps must be ascending.
Panics on error. Call row_checked
in order to test for failures.
pub fn row_checked( &mut self, name: &str, format: &str, t: &NaiveDateTime, cols: &[&dyn FromValue], ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<'client> Freeze for CreateAdder<'client>
impl<'client> !RefUnwindSafe for CreateAdder<'client>
impl<'client> !Send for CreateAdder<'client>
impl<'client> !Sync for CreateAdder<'client>
impl<'client> Unpin for CreateAdder<'client>
impl<'client> !UnwindSafe for CreateAdder<'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