pub struct AgentRoleStatsQuery {
pub period: Option<HistoryPeriod>,
}Expand description
Query parameters for GET /api/v1/stats/agent-roles.
§Examples
use ironflow_api::entities::AgentRoleStatsQuery;
use ironflow_store::entities::HistoryPeriod;
let query = AgentRoleStatsQuery {
period: Some(HistoryPeriod::ThirtyDays),
};
assert_eq!(query.period, Some(HistoryPeriod::ThirtyDays));Fields§
§period: Option<HistoryPeriod>Time period to query: 24h, 7d, 30d or 90d. Defaults to 7d.
Trait Implementations§
Source§impl Debug for AgentRoleStatsQuery
impl Debug for AgentRoleStatsQuery
Source§impl<'de> Deserialize<'de> for AgentRoleStatsQuery
impl<'de> Deserialize<'de> for AgentRoleStatsQuery
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 AgentRoleStatsQuery
impl RefUnwindSafe for AgentRoleStatsQuery
impl Send for AgentRoleStatsQuery
impl Sync for AgentRoleStatsQuery
impl Unpin for AgentRoleStatsQuery
impl UnsafeUnpin for AgentRoleStatsQuery
impl UnwindSafe for AgentRoleStatsQuery
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