pub struct Profile {
pub unique_id: Uuid,
/* private fields */
}Fields§
§unique_id: UuidImplementations§
Source§impl Profile
impl Profile
pub fn check(&mut self) -> Result<()>
pub fn payment_methods(&self) -> Result<Vec<Box<dyn PaymentMethod>>>
pub fn set_payment_method( &mut self, payment_method: &Box<dyn PaymentMethod>, ) -> Result<()>
pub fn remove_payment_method(&mut self, method: &Methods) -> Result<()>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Profile> for RemoteProfile
impl From<Profile> for RemoteProfile
Source§impl From<RemoteProfile> for Profile
impl From<RemoteProfile> for Profile
Source§fn from(remote_profile: RemoteProfile) -> Self
fn from(remote_profile: RemoteProfile) -> Self
Converts to this type from the input type.
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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.