pub struct QuotaStatusBody {
pub agent_id: Option<String>,
pub namespace: Option<String>,
}Expand description
JSON body for POST /api/v1/quota/status.
agent_id is required when the caller wants a single-agent
snapshot; omitting it returns the full table (operator surface).
namespace (v0.7.0 #1156 — per-namespace K8 dimension):
- Supplied with
agent_id: returns the single(agent_id, namespace)row. - Supplied without
agent_id: returns every agent’s row in that namespace (operator-scoped, admin-gated). - Omitted with
agent_idsupplied: returns the aggregate view, summing counters across every namespace the agent has written into (preserves pre-#1156 single-row response shape). - Omitted with
agent_idalso omitted: full-substrate listing.
Fields§
§agent_id: Option<String>§namespace: Option<String>Trait Implementations§
Source§impl Debug for QuotaStatusBody
impl Debug for QuotaStatusBody
Source§impl<'de> Deserialize<'de> for QuotaStatusBody
impl<'de> Deserialize<'de> for QuotaStatusBody
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 QuotaStatusBody
impl RefUnwindSafe for QuotaStatusBody
impl Send for QuotaStatusBody
impl Sync for QuotaStatusBody
impl Unpin for QuotaStatusBody
impl UnsafeUnpin for QuotaStatusBody
impl UnwindSafe for QuotaStatusBody
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more