Struct rocket_api_base::BaseResponse [−][src]
pub struct BaseResponse<T> where
T: Serialize, { pub result: String, pub error_message: String, pub error_code: u32, pub content: BaseContent<T>, }
Fields
result: String
error_message: String
error_code: u32
content: BaseContent<T>
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for BaseResponse<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for BaseResponse<T> where
T: Send,
T: Send,
impl<T> Sync for BaseResponse<T> where
T: Sync,
T: Sync,
impl<T> Unpin for BaseResponse<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for BaseResponse<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,