pub struct PatchEvent {
pub external_id: Option<UpdateSetNull<String>>,
pub data_set_id: Option<UpdateSetNull<i64>>,
pub start_time: Option<UpdateSetNull<i64>>,
pub end_time: Option<UpdateSetNull<i64>>,
pub description: Option<UpdateSetNull<String>>,
pub metadata: Option<UpdateMap<String, String>>,
pub asset_ids: Option<UpdateList<i64, i64>>,
pub source: Option<UpdateSetNull<String>>,
pub type: Option<UpdateSetNull<String>>,
pub subtype: Option<UpdateSetNull<String>>,
}Expand description
Update an event.
Fields§
§external_id: Option<UpdateSetNull<String>>Event external ID. Must be unique accross all events in the project.
data_set_id: Option<UpdateSetNull<i64>>The ID of the dataset this event belongs to.
start_time: Option<UpdateSetNull<i64>>Start time in milliseconds since epoch.
end_time: Option<UpdateSetNull<i64>>End time in milliseconds since epoch.
description: Option<UpdateSetNull<String>>Textual description of the event.
metadata: Option<UpdateMap<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<UpdateList<i64, i64>>IDs of assets this event belongs to.
source: Option<UpdateSetNull<String>>The source of this event.
type: Option<UpdateSetNull<String>>Type of the event.
subtype: Option<UpdateSetNull<String>>Subtype of the event.
Trait Implementations§
Source§impl Clone for PatchEvent
impl Clone for PatchEvent
Source§fn clone(&self) -> PatchEvent
fn clone(&self) -> PatchEvent
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 PatchEvent
impl Debug for PatchEvent
Source§impl Default for PatchEvent
impl Default for PatchEvent
Source§fn default() -> PatchEvent
fn default() -> PatchEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchEvent
impl<'de> Deserialize<'de> for PatchEvent
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 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 PatchEvent
impl RefUnwindSafe for PatchEvent
impl Send for PatchEvent
impl Sync for PatchEvent
impl Unpin for PatchEvent
impl UnwindSafe for PatchEvent
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