pub enum AdminResponseBody {
Success(Value),
AgentList(Vec<AgentSummary>),
GroupList(Vec<GroupSummary>),
Quotas(Quotas),
Error(String),
}Expand description
Typed admin response body.
Variants§
Success(Value)
Generic success payload — used by mutating variants where the interesting result is “the write landed.”
AgentList(Vec<AgentSummary>)
Response for AdminRequestKind::AgentList.
GroupList(Vec<GroupSummary>)
Response for AdminRequestKind::GroupList.
Quotas(Quotas)
Response for AdminRequestKind::QuotaGet.
Error(String)
The request failed.
Trait Implementations§
Source§impl Clone for AdminResponseBody
impl Clone for AdminResponseBody
Source§fn clone(&self) -> AdminResponseBody
fn clone(&self) -> AdminResponseBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AdminResponseBody
impl Debug for AdminResponseBody
Source§impl<'de> Deserialize<'de> for AdminResponseBody
impl<'de> Deserialize<'de> for AdminResponseBody
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 AdminResponseBody
impl RefUnwindSafe for AdminResponseBody
impl Send for AdminResponseBody
impl Sync for AdminResponseBody
impl Unpin for AdminResponseBody
impl UnsafeUnpin for AdminResponseBody
impl UnwindSafe for AdminResponseBody
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