pub enum KBResponse {
Topics(ListResponse<Topic>),
Topic(SingleResponse<Topic>),
Assessments(ListResponse<Assessment>),
Assessment(SingleResponse<Assessment>),
Contributors(ListResponse<Contributor>),
Contributor(SingleResponse<Contributor>),
Error(ErrorResponse),
}
Expand description
The API returns seven primary objects in the body of the response: KBResponse
Variants§
Topics(ListResponse<Topic>)
Topic(SingleResponse<Topic>)
Assessments(ListResponse<Assessment>)
Assessment(SingleResponse<Assessment>)
Contributors(ListResponse<Contributor>)
Contributor(SingleResponse<Contributor>)
Error(ErrorResponse)
Trait Implementations§
Source§impl Clone for KBResponse
impl Clone for KBResponse
Source§fn clone(&self) -> KBResponse
fn clone(&self) -> KBResponse
Returns a copy 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 KBResponse
impl Debug for KBResponse
Source§impl<'de> Deserialize<'de> for KBResponse
impl<'de> Deserialize<'de> for KBResponse
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 PartialEq for KBResponse
impl PartialEq for KBResponse
Source§impl Serialize for KBResponse
impl Serialize for KBResponse
impl StructuralPartialEq for KBResponse
Auto Trait Implementations§
impl Freeze for KBResponse
impl RefUnwindSafe for KBResponse
impl Send for KBResponse
impl Sync for KBResponse
impl Unpin for KBResponse
impl UnwindSafe for KBResponse
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