pub struct ProjectCounters {
pub day: Option<NaiveDate>,
pub event_count: Option<i64>,
pub month: Option<NaiveDate>,
pub object: Option<String>,
pub project_id: Option<String>,
pub request_count: Option<i64>,
}
Expand description
A Project Counters object represents the statistics of a project.
JSON schema
{
"description": "A Project Counters object represents the statistics of a project.",
"examples": [
{
"event_count": 12390,
"month": "2023-12",
"object": "project_counters",
"project_id": "6d614bd5-4d81-4a9b-8ba4-6fe3ffd33748",
"request_count": 32423432
}
],
"type": "object",
"properties": {
"day": {
"description": "The day of the statistics.",
"type": "string",
"format": "date"
},
"event_count": {
"description": "The number of events made to the project.",
"type": "integer"
},
"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"
},
"project_id": {
"description": "The Project ID.",
"type": "string"
},
"request_count": {
"description": "The number of requests made to the project.",
"type": "integer"
}
}
}
Fields§
§day: Option<NaiveDate>
The day of the statistics.
event_count: Option<i64>
The number of events made to the project.
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
project_id: Option<String>
The Project ID.
request_count: Option<i64>
The number of requests made to the project.
Implementations§
Source§impl ProjectCounters
impl ProjectCounters
pub fn builder() -> ProjectCounters
Trait Implementations§
Source§impl Clone for ProjectCounters
impl Clone for ProjectCounters
Source§fn clone(&self) -> ProjectCounters
fn clone(&self) -> ProjectCounters
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 ProjectCounters
impl Debug for ProjectCounters
Source§impl Default for ProjectCounters
impl Default for ProjectCounters
Source§impl<'de> Deserialize<'de> for ProjectCounters
impl<'de> Deserialize<'de> for ProjectCounters
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<&ProjectCounters> for ProjectCounters
impl From<&ProjectCounters> for ProjectCounters
Source§fn from(value: &ProjectCounters) -> Self
fn from(value: &ProjectCounters) -> Self
Converts to this type from the input type.
Source§impl From<ProjectCounters> for ProjectCounters
impl From<ProjectCounters> for ProjectCounters
Source§fn from(value: ProjectCounters) -> Self
fn from(value: ProjectCounters) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ProjectCounters
impl JsonSchema for ProjectCounters
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 ProjectCounters
impl Serialize for ProjectCounters
Source§impl TryFrom<ProjectCounters> for ProjectCounters
impl TryFrom<ProjectCounters> for ProjectCounters
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProjectCounters) -> Result<Self, ConversionError>
fn try_from(value: ProjectCounters) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProjectCounters
impl RefUnwindSafe for ProjectCounters
impl Send for ProjectCounters
impl Sync for ProjectCounters
impl Unpin for ProjectCounters
impl UnwindSafe for ProjectCounters
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