Enum bollard::service::ChangeType
source · #[repr(i32)]pub enum ChangeType {
_0 = 0,
_1 = 1,
_2 = 2,
}
Expand description
Kind of change Can be one of: - 0
: Modified ("C") - 1
: Added ("A") - 2
: Deleted ("D")
Enumeration of values.
Since this enum’s variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
Variants§
Trait Implementations§
source§impl Clone for ChangeType
impl Clone for ChangeType
source§fn clone(&self) -> ChangeType
fn clone(&self) -> ChangeType
Returns a copy of the value. Read more
1.0.0 · 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 ChangeType
impl Debug for ChangeType
source§impl Default for ChangeType
impl Default for ChangeType
source§fn default() -> ChangeType
fn default() -> ChangeType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChangeType
impl<'de> Deserialize<'de> for ChangeType
source§fn deserialize<D>(
deserializer: D,
) -> Result<ChangeType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ChangeType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ChangeType
impl Display for ChangeType
source§impl Ord for ChangeType
impl Ord for ChangeType
source§fn cmp(&self, other: &ChangeType) -> Ordering
fn cmp(&self, other: &ChangeType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ChangeType
impl PartialEq for ChangeType
source§fn eq(&self, other: &ChangeType) -> bool
fn eq(&self, other: &ChangeType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChangeType
impl PartialOrd for ChangeType
source§fn partial_cmp(&self, other: &ChangeType) -> Option<Ordering>
fn partial_cmp(&self, other: &ChangeType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ChangeType
impl Serialize for ChangeType
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 Copy for ChangeType
impl Eq for ChangeType
impl StructuralPartialEq for ChangeType
Auto Trait Implementations§
impl Freeze for ChangeType
impl RefUnwindSafe for ChangeType
impl Send for ChangeType
impl Sync for ChangeType
impl Unpin for ChangeType
impl UnwindSafe for ChangeType
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)