Enum stripe::IdOrCreate
source · pub enum IdOrCreate<'a, T> {
Id(&'a str),
Create(&'a T),
}
Variants§
Trait Implementations§
source§impl<'a, T: Clone> Clone for IdOrCreate<'a, T>
impl<'a, T: Clone> Clone for IdOrCreate<'a, T>
source§fn clone(&self) -> IdOrCreate<'a, T>
fn clone(&self) -> IdOrCreate<'a, T>
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<'a, T: Debug> Debug for IdOrCreate<'a, T>
impl<'a, T: Debug> Debug for IdOrCreate<'a, T>
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for IdOrCreate<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for IdOrCreate<'a, T>where
T: Sync,
impl<'a, T> Sync for IdOrCreate<'a, T>where
T: Sync,
impl<'a, T> Unpin for IdOrCreate<'a, T>
impl<'a, T> UnwindSafe for IdOrCreate<'a, T>where
T: RefUnwindSafe,
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