pub struct NotCarried {
pub field: &'static str,
pub populated: bool,
pub value: Option<String>,
pub reason: &'static str,
}Expand description
One ProfileData field the .a7p format has no place for.
Fields§
§field: &'static strThe ProfileData field name, spelled exactly as the struct and the saved
profile JSON spell it. Never a prose label: a caller has to be able to
look it up in the document it was handed.
populated: boolWhether THIS profile actually held something in that field. false means
nothing was lost here; true means data went missing and the shooter’s
recipient will not receive it.
value: Option<String>What was in the field, when populated — short enough to show a user.
reason: &'static strWhy .a7p cannot take it.
Trait Implementations§
Source§impl Clone for NotCarried
impl Clone for NotCarried
Source§impl Debug for NotCarried
impl Debug for NotCarried
impl Eq for NotCarried
Source§impl PartialEq for NotCarried
impl PartialEq for NotCarried
Source§impl Serialize for NotCarried
impl Serialize for NotCarried
impl StructuralPartialEq for NotCarried
Auto Trait Implementations§
impl Freeze for NotCarried
impl RefUnwindSafe for NotCarried
impl Send for NotCarried
impl Sync for NotCarried
impl Unpin for NotCarried
impl UnsafeUnpin for NotCarried
impl UnwindSafe for NotCarried
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.