pub struct WebhookEventId(/* private fields */);Expand description
Webhook event identifier.
Implementations§
Source§impl WebhookEventId
impl WebhookEventId
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 WebhookEventId
impl AsRef<str> for WebhookEventId
Source§impl Clone for WebhookEventId
impl Clone for WebhookEventId
Source§fn clone(&self) -> WebhookEventId
fn clone(&self) -> WebhookEventId
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 WebhookEventId
impl Debug for WebhookEventId
Source§impl Hash for WebhookEventId
impl Hash for WebhookEventId
Source§impl PartialEq for WebhookEventId
impl PartialEq for WebhookEventId
impl Eq for WebhookEventId
impl StructuralPartialEq for WebhookEventId
Auto Trait Implementations§
impl Freeze for WebhookEventId
impl RefUnwindSafe for WebhookEventId
impl Send for WebhookEventId
impl Sync for WebhookEventId
impl Unpin for WebhookEventId
impl UnsafeUnpin for WebhookEventId
impl UnwindSafe for WebhookEventId
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