pub struct WebhookEndpointUrl(/* private fields */);Implementations§
Source§impl WebhookEndpointUrl
impl WebhookEndpointUrl
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for WebhookEndpointUrl
impl AsRef<str> for WebhookEndpointUrl
Source§impl Clone for WebhookEndpointUrl
impl Clone for WebhookEndpointUrl
Source§fn clone(&self) -> WebhookEndpointUrl
fn clone(&self) -> WebhookEndpointUrl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookEndpointUrl
impl Debug for WebhookEndpointUrl
Source§impl Display for WebhookEndpointUrl
impl Display for WebhookEndpointUrl
Source§impl FromStr for WebhookEndpointUrl
impl FromStr for WebhookEndpointUrl
Source§impl Hash for WebhookEndpointUrl
impl Hash for WebhookEndpointUrl
Source§impl Ord for WebhookEndpointUrl
impl Ord for WebhookEndpointUrl
Source§fn cmp(&self, other: &WebhookEndpointUrl) -> Ordering
fn cmp(&self, other: &WebhookEndpointUrl) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WebhookEndpointUrl
impl PartialEq for WebhookEndpointUrl
Source§fn eq(&self, other: &WebhookEndpointUrl) -> bool
fn eq(&self, other: &WebhookEndpointUrl) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WebhookEndpointUrl
impl PartialOrd for WebhookEndpointUrl
Source§impl TryFrom<&str> for WebhookEndpointUrl
impl TryFrom<&str> for WebhookEndpointUrl
impl Eq for WebhookEndpointUrl
impl StructuralPartialEq for WebhookEndpointUrl
Auto Trait Implementations§
impl Freeze for WebhookEndpointUrl
impl RefUnwindSafe for WebhookEndpointUrl
impl Send for WebhookEndpointUrl
impl Sync for WebhookEndpointUrl
impl Unpin for WebhookEndpointUrl
impl UnsafeUnpin for WebhookEndpointUrl
impl UnwindSafe for WebhookEndpointUrl
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