Struct torn_api::ApiResponse
source · pub struct ApiResponse {
pub value: Value,
}
Fields§
§value: Value
Implementations§
source§impl ApiResponse
impl ApiResponse
pub fn from_value(value: Value) -> Result<Self, ResponseError>
Trait Implementations§
source§impl From<ApiResponse> for Response
impl From<ApiResponse> for Response
source§fn from(value: ApiResponse) -> Self
fn from(value: ApiResponse) -> Self
Converts to this type from the input type.
source§impl From<ApiResponse> for Response
impl From<ApiResponse> for Response
source§fn from(value: ApiResponse) -> Self
fn from(value: ApiResponse) -> Self
Converts to this type from the input type.
source§impl From<ApiResponse> for Response
impl From<ApiResponse> for Response
source§fn from(value: ApiResponse) -> Self
fn from(value: ApiResponse) -> Self
Converts to this type from the input type.
source§impl From<ApiResponse> for Response
impl From<ApiResponse> for Response
source§fn from(value: ApiResponse) -> Self
fn from(value: ApiResponse) -> Self
Converts to this type from the input type.
source§impl From<ApiResponse> for Response
impl From<ApiResponse> for Response
source§fn from(value: ApiResponse) -> Self
fn from(value: ApiResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApiResponse
impl RefUnwindSafe for ApiResponse
impl Send for ApiResponse
impl Sync for ApiResponse
impl Unpin for ApiResponse
impl UnwindSafe for ApiResponse
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