pub struct StatsResponse {Show 21 fields
pub short_code: String,
pub url: String,
pub total_clicks: u32,
pub total_unique_clicks: u32,
pub creation_date: Option<String>,
pub expired: Option<bool>,
pub last_click: Option<String>,
pub last_click_browser: Option<String>,
pub last_click_os: Option<String>,
pub max_clicks: Option<u32>,
pub password: Option<String>,
pub block_bots: Option<bool>,
pub bots: Option<HashMap<String, u32>>,
pub browser: Option<HashMap<String, u32>>,
pub country: Option<HashMap<String, u32>>,
pub counter: Option<HashMap<String, u32>>,
pub unique_browser: Option<HashMap<String, u32>>,
pub unique_country: Option<HashMap<String, u32>>,
pub unique_counter: Option<HashMap<String, u32>>,
pub unique_os_name: Option<HashMap<String, u32>>,
pub unique_referrer: Option<HashMap<String, u32>>,
}Expand description
Response struct for POST /stats/{shortCode}, containing URL statistics.
Fields§
§short_code: StringThe code of the short URL.
url: StringThe original long URL.
total_clicks: u32Total clicks since creation.
total_unique_clicks: u32Total unique clicks.
creation_date: Option<String>Creation date (string) of the short link, if available.
expired: Option<bool>Whether the link has expired.
last_click: Option<String>Last click timestamp (if any).
last_click_browser: Option<String>Last browser used.
last_click_os: Option<String>Last OS used.
max_clicks: Option<u32>Max clicks allowed (if set).
password: Option<String>The password set on the short URL (if any).
block_bots: Option<bool>Whether bots were blocked.
bots: Option<HashMap<String, u32>>Click data per bot type.
browser: Option<HashMap<String, u32>>Click data per browser.
country: Option<HashMap<String, u32>>Click data per country.
counter: Option<HashMap<String, u32>>Clicks per day.
unique_browser: Option<HashMap<String, u32>>Unique clicks per browser.
unique_country: Option<HashMap<String, u32>>Unique clicks per country.
unique_counter: Option<HashMap<String, u32>>Unique clicks per day.
unique_os_name: Option<HashMap<String, u32>>Unique clicks per OS name.
unique_referrer: Option<HashMap<String, u32>>Unique clicks per referrer.
Trait Implementations§
Source§impl Clone for StatsResponse
impl Clone for StatsResponse
Source§fn clone(&self) -> StatsResponse
fn clone(&self) -> StatsResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StatsResponse
impl Debug for StatsResponse
Source§impl<'de> Deserialize<'de> for StatsResponse
impl<'de> Deserialize<'de> for StatsResponse
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
Auto Trait Implementations§
impl Freeze for StatsResponse
impl RefUnwindSafe for StatsResponse
impl Send for StatsResponse
impl Sync for StatsResponse
impl Unpin for StatsResponse
impl UnsafeUnpin for StatsResponse
impl UnwindSafe for StatsResponse
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