pub struct CounterResponse {
pub value: i64,
pub success: bool,
pub message: Option<String>,
}Expand description
Response from counter operations
Fields§
§value: i64The current value after the operation
success: boolWhether the operation was successful
message: Option<String>Optional message (e.g., for errors)
Implementations§
Trait Implementations§
Source§impl Clone for CounterResponse
impl Clone for CounterResponse
Source§fn clone(&self) -> CounterResponse
fn clone(&self) -> CounterResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CounterResponse
impl Debug for CounterResponse
Source§impl<'de> Deserialize<'de> for CounterResponse
impl<'de> Deserialize<'de> for CounterResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CounterResponse
impl PartialEq for CounterResponse
Source§fn eq(&self, other: &CounterResponse) -> bool
fn eq(&self, other: &CounterResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CounterResponse
impl Serialize for CounterResponse
impl StructuralPartialEq for CounterResponse
Auto Trait Implementations§
impl Freeze for CounterResponse
impl RefUnwindSafe for CounterResponse
impl Send for CounterResponse
impl Sync for CounterResponse
impl Unpin for CounterResponse
impl UnsafeUnpin for CounterResponse
impl UnwindSafe for CounterResponse
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