#[non_exhaustive]pub struct AppendEventsRequest {
pub events: Vec<Event>,
pub dataset: String,
/* private fields */
}Expand description
Appends events to an existing DataSet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.events: Vec<Event>Events to be appended.
Note:
- The DataSet must be shown in a
LOADEDstate in the results oflistmethod; otherwise, all events from the append request will be dropped, and aNOT_FOUNDstatus will be returned. - All events in a single request must have the same
groupId if set; otherwise, an
INVALID_ARGUMENTstatus will be returned. - If groupId is not set (or 0), there
should be only 1 event; otherwise, an
INVALID_ARGUMENTstatus will be returned. - The events must be newer than the current time minus DataSet TTL or they will be dropped.
dataset: StringRequired. The DataSet to which we want to append to in the format of “projects/{project}/datasets/{dataset}”
Implementations§
Source§impl AppendEventsRequest
impl AppendEventsRequest
pub fn new() -> Self
Sourcepub fn set_events<T, V>(self, v: T) -> Self
pub fn set_events<T, V>(self, v: T) -> Self
Sets the value of events.
Sourcepub fn set_dataset<T: Into<String>>(self, v: T) -> Self
pub fn set_dataset<T: Into<String>>(self, v: T) -> Self
Sets the value of dataset.
Trait Implementations§
Source§impl Clone for AppendEventsRequest
impl Clone for AppendEventsRequest
Source§fn clone(&self) -> AppendEventsRequest
fn clone(&self) -> AppendEventsRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppendEventsRequest
impl Debug for AppendEventsRequest
Source§impl Default for AppendEventsRequest
impl Default for AppendEventsRequest
Source§fn default() -> AppendEventsRequest
fn default() -> AppendEventsRequest
Returns the “default value” for a type. Read more
Source§impl Message for AppendEventsRequest
impl Message for AppendEventsRequest
Source§impl PartialEq for AppendEventsRequest
impl PartialEq for AppendEventsRequest
impl StructuralPartialEq for AppendEventsRequest
Auto Trait Implementations§
impl Freeze for AppendEventsRequest
impl RefUnwindSafe for AppendEventsRequest
impl Send for AppendEventsRequest
impl Sync for AppendEventsRequest
impl Unpin for AppendEventsRequest
impl UnwindSafe for AppendEventsRequest
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