pub struct AstroIntegrationName(/* private fields */);Expand description
Validated Astro integration name metadata.
Implementations§
Source§impl AstroIntegrationName
impl AstroIntegrationName
Sourcepub fn new(input: &str) -> Result<AstroIntegrationName, AstroTextError>
pub fn new(input: &str) -> Result<AstroIntegrationName, AstroTextError>
Creates Astro integration name metadata.
§Errors
Returns AstroTextError when input is empty, contains whitespace, or has unsupported characters.
Trait Implementations§
Source§impl Clone for AstroIntegrationName
impl Clone for AstroIntegrationName
Source§fn clone(&self) -> AstroIntegrationName
fn clone(&self) -> AstroIntegrationName
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 AstroIntegrationName
impl Debug for AstroIntegrationName
Source§impl Display for AstroIntegrationName
impl Display for AstroIntegrationName
Source§impl FromStr for AstroIntegrationName
impl FromStr for AstroIntegrationName
Source§type Err = AstroTextError
type Err = AstroTextError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<AstroIntegrationName, <AstroIntegrationName as FromStr>::Err>
fn from_str( input: &str, ) -> Result<AstroIntegrationName, <AstroIntegrationName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for AstroIntegrationName
impl Hash for AstroIntegrationName
Source§impl Ord for AstroIntegrationName
impl Ord for AstroIntegrationName
Source§fn cmp(&self, other: &AstroIntegrationName) -> Ordering
fn cmp(&self, other: &AstroIntegrationName) -> 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 AstroIntegrationName
impl PartialEq for AstroIntegrationName
Source§fn eq(&self, other: &AstroIntegrationName) -> bool
fn eq(&self, other: &AstroIntegrationName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AstroIntegrationName
impl PartialOrd for AstroIntegrationName
Source§impl TryFrom<&str> for AstroIntegrationName
impl TryFrom<&str> for AstroIntegrationName
Source§type Error = AstroTextError
type Error = AstroTextError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<AstroIntegrationName, <AstroIntegrationName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<AstroIntegrationName, <AstroIntegrationName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for AstroIntegrationName
impl StructuralPartialEq for AstroIntegrationName
Auto Trait Implementations§
impl Freeze for AstroIntegrationName
impl RefUnwindSafe for AstroIntegrationName
impl Send for AstroIntegrationName
impl Sync for AstroIntegrationName
impl Unpin for AstroIntegrationName
impl UnsafeUnpin for AstroIntegrationName
impl UnwindSafe for AstroIntegrationName
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