pub enum CreateComponentResponse {
Created(ComponentResponse),
BadRequest(ComponentFailureResponse),
Unauthorized,
MethodNotAllowed,
ContentTooLarge(ComponentFailureResponse),
UnprocessableEntity(ComponentFailureResponse),
Unknown,
}Expand description
Response types for createComponent
Variants§
Created(ComponentResponse)
201: Component created.
BadRequest(ComponentFailureResponse)
400: Invalid request body.
401: Invalid API key or content API not enabled for this team.
MethodNotAllowed
405: Wrong HTTP request method.
ContentTooLarge(ComponentFailureResponse)
413: LMX body exceeds the size limit.
UnprocessableEntity(ComponentFailureResponse)
422: Invalid LMX.
Unknown
default: Unknown response
Trait Implementations§
Source§impl Clone for CreateComponentResponse
impl Clone for CreateComponentResponse
Auto Trait Implementations§
impl Freeze for CreateComponentResponse
impl RefUnwindSafe for CreateComponentResponse
impl Send for CreateComponentResponse
impl Sync for CreateComponentResponse
impl Unpin for CreateComponentResponse
impl UnsafeUnpin for CreateComponentResponse
impl UnwindSafe for CreateComponentResponse
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