pub struct ProviderReference(/* private fields */);Expand description
Provider reference.
Implementations§
Source§impl ProviderReference
impl ProviderReference
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, PaymentError>
pub fn new(value: impl AsRef<str>) -> Result<Self, PaymentError>
Creates a validated string newtype.
§Errors
Returns an error when the value is empty or longer than 255 bytes.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Converts into the owned string.
Trait Implementations§
Source§impl AsRef<str> for ProviderReference
impl AsRef<str> for ProviderReference
Source§impl Clone for ProviderReference
impl Clone for ProviderReference
Source§fn clone(&self) -> ProviderReference
fn clone(&self) -> ProviderReference
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 ProviderReference
impl Debug for ProviderReference
Source§impl Hash for ProviderReference
impl Hash for ProviderReference
Source§impl PartialEq for ProviderReference
impl PartialEq for ProviderReference
impl Eq for ProviderReference
impl StructuralPartialEq for ProviderReference
Auto Trait Implementations§
impl Freeze for ProviderReference
impl RefUnwindSafe for ProviderReference
impl Send for ProviderReference
impl Sync for ProviderReference
impl Unpin for ProviderReference
impl UnsafeUnpin for ProviderReference
impl UnwindSafe for ProviderReference
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