pub enum EnrollResponse {
Success {
data: EnrollResponseData,
},
Error {
errors: APIErrors,
},
}
Expand description
The response to an EnrollRequest
Variants§
Success
A successful enrollment, with a data
field pointing to an EnrollResponseData
Fields
§
data: EnrollResponseData
The response data from this response
Error
An unsuccessful enrollment, with an errors
field pointing to an array of APIError
s.
Trait Implementations§
Source§impl Debug for EnrollResponse
impl Debug for EnrollResponse
Source§impl<'de> Deserialize<'de> for EnrollResponse
impl<'de> Deserialize<'de> for EnrollResponse
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 EnrollResponse
impl RefUnwindSafe for EnrollResponse
impl Send for EnrollResponse
impl Sync for EnrollResponse
impl Unpin for EnrollResponse
impl UnwindSafe for EnrollResponse
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