pub struct AddEvent {
pub external_id: Option<String>,
pub data_set_id: Option<i64>,
pub start_time: Option<i64>,
pub end_time: Option<i64>,
pub type: Option<String>,
pub subtype: Option<String>,
pub description: Option<String>,
pub metadata: Option<HashMap<String, String>>,
pub asset_ids: Option<Vec<i64>>,
pub source: Option<String>,
}Expand description
Create a new event
Fields§
§external_id: Option<String>Event external ID. Must be unique accross all events in the project.
data_set_id: Option<i64>The ID of the dataset this event belongs to.
start_time: Option<i64>Start time in milliseconds since epoch.
end_time: Option<i64>End time in milliseconds since epoch.
type: Option<String>Type of the event.
subtype: Option<String>Subtype of the event.
description: Option<String>Textual description of the event.
metadata: Option<HashMap<String, String>>Custom, application specific metadata. String key -> String value. Limits: Maximum length of key is 128 bytes, value 128000 bytes, up to 256 key-value pairs, of total size at most 200000.
asset_ids: Option<Vec<i64>>IDs of assets this event belongs to.
source: Option<String>The source of this event.
Trait Implementations§
Source§impl Create<AddEvent, Event> for EventsResource
impl Create<AddEvent, Event> for EventsResource
Source§fn create(
&self,
creates: &[TCreate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn create( &self, creates: &[TCreate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Create a list of resources. Read more
Source§fn create_from(
&self,
creates: &[impl Into<TCreate> + Sync + Clone],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn create_from( &self, creates: &[impl Into<TCreate> + Sync + Clone], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Create a list of resources, converting from a different type. Read more
Source§fn create_ignore_duplicates(
&self,
creates: &[TCreate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TCreate: EqIdentity,
fn create_ignore_duplicates(
&self,
creates: &[TCreate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TCreate: EqIdentity,
Create a list of resources, ignoring any that fail with general “conflict” errors. Read more
Source§fn create_from_ignore_duplicates<'a, T: 'a>(
&self,
creates: &'a [impl Into<TCreate> + Sync + Clone],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TCreate: EqIdentity,
fn create_from_ignore_duplicates<'a, T: 'a>(
&self,
creates: &'a [impl Into<TCreate> + Sync + Clone],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TCreate: EqIdentity,
Create a list of resources, converting from a different type, and ignoring any that fail
with general “conflict” errors. Read more
Source§impl<'de> Deserialize<'de> for AddEvent
impl<'de> Deserialize<'de> for AddEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EqIdentity for AddEvent
impl EqIdentity for AddEvent
Source§impl IntoPatch<PatchEvent> for AddEvent
impl IntoPatch<PatchEvent> for AddEvent
Source§fn patch(self, options: &UpsertOptions) -> PatchEvent
fn patch(self, options: &UpsertOptions) -> PatchEvent
Convert self into a patch, optionally ignoring null values.
Auto Trait Implementations§
impl Freeze for AddEvent
impl RefUnwindSafe for AddEvent
impl Send for AddEvent
impl Sync for AddEvent
impl Unpin for AddEvent
impl UnwindSafe for AddEvent
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