pub struct WriteQuery<'a, T: Display> {
pub name: &'a str,
pub tags: HashMap<&'a str, &'a str>,
pub field_name: &'a str,
pub value: T,
pub timestamp: Option<(SystemTime, Precision)>,
}
Expand description
Use this struct to write data to a bucket.
Fields§
§name: &'a str
§field_name: &'a str
§value: T
§timestamp: Option<(SystemTime, Precision)>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for WriteQuery<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for WriteQuery<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for WriteQuery<'a, T>where
T: Send,
impl<'a, T> Sync for WriteQuery<'a, T>where
T: Sync,
impl<'a, T> Unpin for WriteQuery<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for WriteQuery<'a, T>where
T: UnwindSafe,
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