Struct sonnerie_api::CreateAdder
source · pub struct CreateAdder<'client> { /* private fields */ }
Expand description
A function returned by Client::create_and_add
.
Implementations
sourceimpl<'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> !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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more