pub struct CreateLinkParams {Show 13 fields
pub short_code: String,
pub target_url: String,
pub link_type: String,
pub source_content_id: Option<ContentId>,
pub source_page: Option<String>,
pub campaign_id: Option<CampaignId>,
pub campaign_name: Option<String>,
pub utm_params: Option<String>,
pub link_text: Option<String>,
pub link_position: Option<String>,
pub destination_type: Option<String>,
pub is_active: bool,
pub expires_at: Option<DateTime<Utc>>,
}Fields§
§short_code: String§target_url: String§link_type: String§source_content_id: Option<ContentId>§source_page: Option<String>§campaign_id: Option<CampaignId>§campaign_name: Option<String>§utm_params: Option<String>§link_text: Option<String>§link_position: Option<String>§destination_type: Option<String>§is_active: bool§expires_at: Option<DateTime<Utc>>Implementations§
Source§impl CreateLinkParams
impl CreateLinkParams
pub const fn new( short_code: String, target_url: String, link_type: String, ) -> Self
pub fn with_source_content_id( self, source_content_id: Option<ContentId>, ) -> Self
pub fn with_source_page(self, source_page: Option<String>) -> Self
pub fn with_campaign_id(self, campaign_id: Option<CampaignId>) -> Self
pub fn with_campaign_name(self, campaign_name: Option<String>) -> Self
pub fn with_utm_params(self, utm_params: Option<String>) -> Self
pub fn with_link_text(self, link_text: Option<String>) -> Self
pub fn with_link_position(self, link_position: Option<String>) -> Self
pub fn with_destination_type(self, destination_type: Option<String>) -> Self
pub const fn with_is_active(self, is_active: bool) -> Self
pub const fn with_expires_at(self, expires_at: Option<DateTime<Utc>>) -> Self
Trait Implementations§
Source§impl Clone for CreateLinkParams
impl Clone for CreateLinkParams
Source§fn clone(&self) -> CreateLinkParams
fn clone(&self) -> CreateLinkParams
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 moreAuto Trait Implementations§
impl Freeze for CreateLinkParams
impl RefUnwindSafe for CreateLinkParams
impl Send for CreateLinkParams
impl Sync for CreateLinkParams
impl Unpin for CreateLinkParams
impl UnwindSafe for CreateLinkParams
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