pub struct CampaignLink {Show 19 fields
pub id: LinkId,
pub short_code: String,
pub target_url: String,
pub link_type: String,
pub campaign_id: Option<CampaignId>,
pub campaign_name: Option<String>,
pub source_content_id: Option<ContentId>,
pub source_page: Option<String>,
pub utm_params: Option<String>,
pub link_text: Option<String>,
pub link_position: Option<String>,
pub destination_type: Option<String>,
pub click_count: Option<i32>,
pub unique_click_count: Option<i32>,
pub conversion_count: Option<i32>,
pub is_active: Option<bool>,
pub expires_at: Option<DateTime<Utc>>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}Fields§
§id: LinkId§short_code: String§target_url: String§link_type: String§campaign_id: Option<CampaignId>§campaign_name: Option<String>§source_content_id: Option<ContentId>§source_page: Option<String>§utm_params: Option<String>§link_text: Option<String>§link_position: Option<String>§destination_type: Option<String>§click_count: Option<i32>§unique_click_count: Option<i32>§conversion_count: Option<i32>§is_active: Option<bool>§expires_at: Option<DateTime<Utc>>§created_at: Option<DateTime<Utc>>§updated_at: Option<DateTime<Utc>>Implementations§
Source§impl CampaignLink
impl CampaignLink
pub fn get_full_url(&self) -> String
Trait Implementations§
Source§impl Clone for CampaignLink
impl Clone for CampaignLink
Source§fn clone(&self) -> CampaignLink
fn clone(&self) -> CampaignLink
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 CampaignLink
impl Debug for CampaignLink
Source§impl<'de> Deserialize<'de> for CampaignLink
impl<'de> Deserialize<'de> for CampaignLink
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<'a, R: Row> FromRow<'a, R> for CampaignLinkwhere
&'a str: ColumnIndex<R>,
LinkId: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<CampaignId>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<ContentId>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
Option<bool>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for CampaignLinkwhere
&'a str: ColumnIndex<R>,
LinkId: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<CampaignId>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<ContentId>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
Option<bool>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for CampaignLink
impl RefUnwindSafe for CampaignLink
impl Send for CampaignLink
impl Sync for CampaignLink
impl Unpin for CampaignLink
impl UnsafeUnpin for CampaignLink
impl UnwindSafe for CampaignLink
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more