Struct AstroIntegrationName
pub struct AstroIntegrationName(/* private fields */);Expand description
Validated Astro integration name metadata.
Implementations§
§impl AstroIntegrationName
impl AstroIntegrationName
pub 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§
§impl Clone for AstroIntegrationName
impl Clone for AstroIntegrationName
§fn clone(&self) -> AstroIntegrationName
fn clone(&self) -> AstroIntegrationName
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 more§impl Debug for AstroIntegrationName
impl Debug for AstroIntegrationName
§impl Display for AstroIntegrationName
impl Display for AstroIntegrationName
§impl FromStr for AstroIntegrationName
impl FromStr for AstroIntegrationName
§type Err = AstroTextError
type Err = AstroTextError
The associated error which can be returned from parsing.
§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 more§impl Hash for AstroIntegrationName
impl Hash for AstroIntegrationName
§impl Ord for AstroIntegrationName
impl Ord for AstroIntegrationName
§fn cmp(&self, other: &AstroIntegrationName) -> Ordering
fn cmp(&self, other: &AstroIntegrationName) -> Ordering
1.21.0 · 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
§impl PartialEq for AstroIntegrationName
impl PartialEq for AstroIntegrationName
§impl PartialOrd for AstroIntegrationName
impl PartialOrd for AstroIntegrationName
§impl TryFrom<&str> for AstroIntegrationName
impl TryFrom<&str> for AstroIntegrationName
§type Error = AstroTextError
type Error = AstroTextError
The type returned in the event of a conversion error.
§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