pub struct CtrDataRequestBody {
pub clicked_chunk_id: Option<Option<Uuid>>,
pub clicked_chunk_tracking_id: Option<Option<String>>,
pub ctr_type: CtrType,
pub metadata: Option<Option<Value>>,
pub position: i32,
pub request_id: Uuid,
}
Fields§
§clicked_chunk_id: Option<Option<Uuid>>
The ID of chunk that was clicked
clicked_chunk_tracking_id: Option<Option<String>>
The tracking ID of the chunk that was clicked
ctr_type: CtrType
§metadata: Option<Option<Value>>
Any metadata you want to include with the event i.e. action, user_id, etc.
position: i32
The position of the clicked chunk
request_id: Uuid
The request id for the CTR data
Implementations§
Trait Implementations§
Source§impl Clone for CtrDataRequestBody
impl Clone for CtrDataRequestBody
Source§fn clone(&self) -> CtrDataRequestBody
fn clone(&self) -> CtrDataRequestBody
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 CtrDataRequestBody
impl Debug for CtrDataRequestBody
Source§impl Default for CtrDataRequestBody
impl Default for CtrDataRequestBody
Source§fn default() -> CtrDataRequestBody
fn default() -> CtrDataRequestBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CtrDataRequestBody
impl<'de> Deserialize<'de> for CtrDataRequestBody
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 PartialEq for CtrDataRequestBody
impl PartialEq for CtrDataRequestBody
Source§impl Serialize for CtrDataRequestBody
impl Serialize for CtrDataRequestBody
impl StructuralPartialEq for CtrDataRequestBody
Auto Trait Implementations§
impl Freeze for CtrDataRequestBody
impl RefUnwindSafe for CtrDataRequestBody
impl Send for CtrDataRequestBody
impl Sync for CtrDataRequestBody
impl Unpin for CtrDataRequestBody
impl UnwindSafe for CtrDataRequestBody
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