pub enum GetComponentResponse {
Ok(ComponentResponse),
BadRequest(ComponentFailureResponse),
Unauthorized,
NotFound(ComponentFailureResponse),
MethodNotAllowed,
Unknown,
}Expand description
Response types for getComponent
Variants§
Ok(ComponentResponse)
200: Successful.
BadRequest(ComponentFailureResponse)
400: Invalid componentId.
401: Invalid API key or content API not enabled for this team.
NotFound(ComponentFailureResponse)
404: Component not found.
MethodNotAllowed
405: Wrong HTTP request method.
Unknown
default: Unknown response
Trait Implementations§
Source§impl Clone for GetComponentResponse
impl Clone for GetComponentResponse
Auto Trait Implementations§
impl Freeze for GetComponentResponse
impl RefUnwindSafe for GetComponentResponse
impl Send for GetComponentResponse
impl Sync for GetComponentResponse
impl Unpin for GetComponentResponse
impl UnsafeUnpin for GetComponentResponse
impl UnwindSafe for GetComponentResponse
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