pub struct Insights {
    pub idsite: u32,
    pub lang: Option<String>,
    pub ua: Option<String>,
    pub visits: Vec<Visit>,
    pub events: Vec<Event>,
}

Fields

idsite: u32

Matomo site ID.

lang: Option<String>

Preferred user languages as an HTTP Accept header.

ua: Option<String>

User Agent string.

visits: Vec<Visit>

Visit data points.

events: Vec<Event>

Event data points.

Implementations

Create an Insights object according to configuration with all data from the store which is due for offloading to the server.

Arguments
  • conf: The current configuration.
  • store: The current measurement and consents store.
  • lang: User languages in order of preference.
  • ua: User Agent string.

Removes all visits and events from the given Store, which are also available in here.

This should be called, when all Insights were offloaded at the server successfully.

Arguments
  • store: The store where the Visits and Events in here came from.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.