pub struct ServiceCode(/* private fields */);Expand description
SNAP BI service code (2-digit slot inside responseCode).
Construction is total via ServiceCode::new: values >99 return None,
closing the truncation hazard of the old service_code % 100 formula.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceCode
impl Clone for ServiceCode
Source§fn clone(&self) -> ServiceCode
fn clone(&self) -> ServiceCode
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 moreimpl Copy for ServiceCode
Source§impl Debug for ServiceCode
impl Debug for ServiceCode
Source§impl<'de> Deserialize<'de> for ServiceCode
impl<'de> Deserialize<'de> for ServiceCode
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ServiceCode
impl Display for ServiceCode
impl Eq for ServiceCode
Source§impl Hash for ServiceCode
impl Hash for ServiceCode
Source§impl PartialEq for ServiceCode
impl PartialEq for ServiceCode
Source§fn eq(&self, other: &ServiceCode) -> bool
fn eq(&self, other: &ServiceCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServiceCode
impl Serialize for ServiceCode
impl StructuralPartialEq for ServiceCode
Auto Trait Implementations§
impl Freeze for ServiceCode
impl RefUnwindSafe for ServiceCode
impl Send for ServiceCode
impl Sync for ServiceCode
impl Unpin for ServiceCode
impl UnsafeUnpin for ServiceCode
impl UnwindSafe for ServiceCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.