pub struct Event {Show 13 fields
pub id: i64,
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>,
pub created_time: i64,
pub last_updated_time: i64,
}Expand description
A CDF event.
Fields§
§id: i64Event internal ID.
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.
created_time: i64Time this event was created, in milliseconds since epoch.
last_updated_time: i64Time this event was last updated, in milliseconds since epoch.
Trait Implementations§
Source§impl CleanResource<Event> for EventsResource
impl CleanResource<Event> for EventsResource
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 Event
impl<'de> Deserialize<'de> for Event
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 FilterWithRequest<EventFilterQuery, Event> for EventsResource
impl FilterWithRequest<EventFilterQuery, Event> for EventsResource
Source§fn filter(
&self,
filter: TFilter,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn filter( &self, filter: TFilter, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Filter resources. Read more
Source§fn filter_all(
&self,
filter: TFilter,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn filter_all( &self, filter: TFilter, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Filter resources, following cursors until they are exhausted. Read more
Source§fn filter_all_stream(
&self,
filter: TFilter,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn filter_all_stream( &self, filter: TFilter, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
Filter resources, following cursors. This returns a stream, you can abort the stream whenever you
want and only resources retrieved up to that point will be returned. Read more
Source§fn filter_all_partitioned(
&self,
filter: TFilter,
num_partitions: u32,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn filter_all_partitioned( &self, filter: TFilter, num_partitions: u32, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Filter resources using partitioned reads, following cursors until all partitions are
exhausted. Read more
Source§impl IntoPatch<Patch<PatchEvent>> for Event
impl IntoPatch<Patch<PatchEvent>> for Event
Source§fn patch(self, options: &UpsertOptions) -> Patch<PatchEvent>
fn patch(self, options: &UpsertOptions) -> Patch<PatchEvent>
Convert self into a patch, optionally ignoring null values.
Source§impl<R> RetrieveWithIgnoreUnknownIds<IdentityList<R>, Event> for EventsResource
impl<R> RetrieveWithIgnoreUnknownIds<IdentityList<R>, Event> for EventsResource
Source§impl SearchItems<'_, EventFilter, EventSearch, Event> for EventsResource
impl SearchItems<'_, EventFilter, EventSearch, Event> for EventsResource
Source§impl Update<Patch<PatchEvent>, Event> for EventsResource
impl Update<Patch<PatchEvent>, Event> for EventsResource
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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