pub struct ProjectComponentCounters {
pub component_id: Option<String>,
pub day: Option<NaiveDate>,
pub month: Option<NaiveDate>,
pub object: Option<String>,
pub page_count: Option<i64>,
pub project_id: Option<String>,
pub track_count: Option<i64>,
pub user_count: Option<i64>,
}
Expand description
A Project Counters object represents the counters of a project.
JSON schema
{
"description": "A Project Counters object represents the counters of a project.",
"examples": [
{
"component_id": "abcdef",
"day": "2023-12-25",
"object": "project_counters",
"page_count": 789,
"project_id": "6d614bd5-4d81-4a9b-8ba4-6fe3ffd33748",
"track_count": 456,
"user_count": 123
}
],
"type": "object",
"properties": {
"component_id": {
"description": "The Project component ID.",
"type": "string"
},
"day": {
"description": "The day of the statistics.",
"type": "string",
"format": "date"
},
"month": {
"description": "The month of the statistics.",
"type": "string",
"format": "date"
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value",
"examples": [
"project_counters"
],
"type": "string"
},
"page_count": {
"description": "The number of page events generated by the component.",
"type": "integer"
},
"project_id": {
"description": "The Project ID.",
"type": "string"
},
"track_count": {
"description": "The number of track events generated by the component.",
"type": "integer"
},
"user_count": {
"description": "The number of user events generated by the component.",
"type": "integer"
}
}
}
Fields§
§component_id: Option<String>
The Project component ID.
day: Option<NaiveDate>
The day of the statistics.
month: Option<NaiveDate>
The month of the statistics.
object: Option<String>
String representing the object’s type. Objects of the same type share the same value
page_count: Option<i64>
The number of page events generated by the component.
project_id: Option<String>
The Project ID.
track_count: Option<i64>
The number of track events generated by the component.
user_count: Option<i64>
The number of user events generated by the component.
Implementations§
Source§impl ProjectComponentCounters
impl ProjectComponentCounters
pub fn builder() -> ProjectComponentCounters
Trait Implementations§
Source§impl Clone for ProjectComponentCounters
impl Clone for ProjectComponentCounters
Source§fn clone(&self) -> ProjectComponentCounters
fn clone(&self) -> ProjectComponentCounters
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 ProjectComponentCounters
impl Debug for ProjectComponentCounters
Source§impl Default for ProjectComponentCounters
impl Default for ProjectComponentCounters
Source§impl<'de> Deserialize<'de> for ProjectComponentCounters
impl<'de> Deserialize<'de> for ProjectComponentCounters
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 From<&ProjectComponentCounters> for ProjectComponentCounters
impl From<&ProjectComponentCounters> for ProjectComponentCounters
Source§fn from(value: &ProjectComponentCounters) -> Self
fn from(value: &ProjectComponentCounters) -> Self
Converts to this type from the input type.
Source§impl From<ProjectComponentCounters> for ProjectComponentCounters
impl From<ProjectComponentCounters> for ProjectComponentCounters
Source§fn from(value: ProjectComponentCounters) -> Self
fn from(value: ProjectComponentCounters) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ProjectComponentCounters
impl JsonSchema for ProjectComponentCounters
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Serialize for ProjectComponentCounters
impl Serialize for ProjectComponentCounters
Source§impl TryFrom<ProjectComponentCounters> for ProjectComponentCounters
impl TryFrom<ProjectComponentCounters> for ProjectComponentCounters
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProjectComponentCounters) -> Result<Self, ConversionError>
fn try_from(value: ProjectComponentCounters) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProjectComponentCounters
impl RefUnwindSafe for ProjectComponentCounters
impl Send for ProjectComponentCounters
impl Sync for ProjectComponentCounters
impl Unpin for ProjectComponentCounters
impl UnwindSafe for ProjectComponentCounters
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