pub enum OwnerLookup {
OwnerId(OwnerId),
AnimalId(AnimalId),
ReservationId(ReservationId),
Phone(SensitiveLookup),
Email(SensitiveLookup),
}Expand description
Typed Gingr owner lookup strategies, separating sensitive search inputs from normal IDs.
Variants§
OwnerId(OwnerId)
Lookup uses a Gingr owner identifier.
AnimalId(AnimalId)
Lookup uses a Gingr animal identifier.
ReservationId(ReservationId)
Lookup uses a Gingr reservation identifier.
Phone(SensitiveLookup)
Lookup uses an owner phone number and should be treated as sensitive.
Email(SensitiveLookup)
Lookup uses an owner email address and should be treated as sensitive.
Trait Implementations§
Source§impl Clone for OwnerLookup
impl Clone for OwnerLookup
Source§fn clone(&self) -> OwnerLookup
fn clone(&self) -> OwnerLookup
Returns a duplicate 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 OwnerLookup
impl Debug for OwnerLookup
Source§impl PartialEq for OwnerLookup
impl PartialEq for OwnerLookup
impl Eq for OwnerLookup
impl StructuralPartialEq for OwnerLookup
Auto Trait Implementations§
impl Freeze for OwnerLookup
impl RefUnwindSafe for OwnerLookup
impl Send for OwnerLookup
impl Sync for OwnerLookup
impl Unpin for OwnerLookup
impl UnsafeUnpin for OwnerLookup
impl UnwindSafe for OwnerLookup
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