pub struct PaymentMethodRefOrValue { /* private fields */ }
Expand description
Payment Method
Trait Implementations§
Source§impl Clone for PaymentMethodRefOrValue
impl Clone for PaymentMethodRefOrValue
Source§fn clone(&self) -> PaymentMethodRefOrValue
fn clone(&self) -> PaymentMethodRefOrValue
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 PaymentMethodRefOrValue
impl Debug for PaymentMethodRefOrValue
Source§impl Default for PaymentMethodRefOrValue
impl Default for PaymentMethodRefOrValue
Source§fn default() -> PaymentMethodRefOrValue
fn default() -> PaymentMethodRefOrValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentMethodRefOrValue
impl<'de> Deserialize<'de> for PaymentMethodRefOrValue
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 HasDescription for PaymentMethodRefOrValue
impl HasDescription for PaymentMethodRefOrValue
Source§fn description(self, description: impl Into<String>) -> Self
fn description(self, description: impl Into<String>) -> Self
Builder pattern function to set the description on object creation
Source§fn get_description(&self) -> String
fn get_description(&self) -> String
Get the description by cloning it if set, returns empty string otherwise.
Source§impl HasId for PaymentMethodRefOrValue
impl HasId for PaymentMethodRefOrValue
Source§fn generate_id(&mut self)
fn generate_id(&mut self)
Generate and store a new ID. This will also regenerated the HREF field via generate_href()
Source§fn generate_href(&mut self)
fn generate_href(&mut self)
Generate a new HTML reference. Read more
Source§fn get_class() -> String
fn get_class() -> String
Get the class of this object. This is also used to form part of the URL via generate_href()
Source§fn get_class_href() -> String
fn get_class_href() -> String
Get Class HREF, this represents the generate path to the class.
Source§fn get_mod_path() -> String
fn get_mod_path() -> String
Get the module path
Source§fn set_id(&mut self, id: impl Into<String>)
fn set_id(&mut self, id: impl Into<String>)
Set the id on the object, also triggers generate_href().
Source§fn id(self, id: impl Into<String>) -> Self
fn id(self, id: impl Into<String>) -> Self
Builder pattern to set id on create()
NB: This can be used to set an explicit id on create instead of auto-generate via
[create
]Auto Trait Implementations§
impl Freeze for PaymentMethodRefOrValue
impl RefUnwindSafe for PaymentMethodRefOrValue
impl Send for PaymentMethodRefOrValue
impl Sync for PaymentMethodRefOrValue
impl Unpin for PaymentMethodRefOrValue
impl UnwindSafe for PaymentMethodRefOrValue
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