pub enum DBSuccessResponse<T> {
SuccessNoData,
SuccessReply(T),
}
Expand description
Represents the various types of successful responses that accessing the database can be.
Variants§
SuccessNoData
SuccessNoData represents when the operation was successful, but no response data was necessary to be replied back.
SuccessReply(T)
SuccessReply represents when the operation was successful, and there is data to be replied back
Implementations§
source§impl<T> DBSuccessResponse<T>
impl<T> DBSuccessResponse<T>
Trait Implementations§
source§impl<T> Debug for DBSuccessResponse<T>where
T: Debug,
impl<T> Debug for DBSuccessResponse<T>where
T: Debug,
source§impl<'de, T> Deserialize<'de> for DBSuccessResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for DBSuccessResponse<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<DBSuccessResponse<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DBSuccessResponse<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> Display for DBSuccessResponse<T>where
T: Display,
impl<T> Display for DBSuccessResponse<T>where
T: Display,
source§impl<T> PartialEq for DBSuccessResponse<T>where
T: PartialEq,
impl<T> PartialEq for DBSuccessResponse<T>where
T: PartialEq,
source§fn eq(&self, other: &DBSuccessResponse<T>) -> bool
fn eq(&self, other: &DBSuccessResponse<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for DBSuccessResponse<T>where
T: Serialize,
impl<T> Serialize for DBSuccessResponse<T>where
T: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> Eq for DBSuccessResponse<T>where
T: Eq,
impl<T> StructuralEq for DBSuccessResponse<T>
impl<T> StructuralPartialEq for DBSuccessResponse<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for DBSuccessResponse<T>where
T: RefUnwindSafe,
impl<T> Send for DBSuccessResponse<T>where
T: Send,
impl<T> Sync for DBSuccessResponse<T>where
T: Sync,
impl<T> Unpin for DBSuccessResponse<T>where
T: Unpin,
impl<T> UnwindSafe for DBSuccessResponse<T>where
T: UnwindSafe,
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