pub struct UtmUrl { /* private fields */ }Expand description
A URL with UTM parameters attached.
Implementations§
Source§impl UtmUrl
impl UtmUrl
Sourcepub fn new(
base_url: impl AsRef<str>,
parameters: UtmParameters,
) -> Result<Self, UtmValueError>
pub fn new( base_url: impl AsRef<str>, parameters: UtmParameters, ) -> Result<Self, UtmValueError>
Creates a UTM URL from a base URL and parameters.
§Errors
Returns UtmValueError::InvalidUrl when the base URL is empty or unsupported.
Sourcepub const fn parameters(&self) -> &UtmParameters
pub const fn parameters(&self) -> &UtmParameters
Returns the UTM parameters.
Trait Implementations§
impl Eq for UtmUrl
impl StructuralPartialEq for UtmUrl
Auto Trait Implementations§
impl Freeze for UtmUrl
impl RefUnwindSafe for UtmUrl
impl Send for UtmUrl
impl Sync for UtmUrl
impl Unpin for UtmUrl
impl UnsafeUnpin for UtmUrl
impl UnwindSafe for UtmUrl
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