Struct AiRoleName
pub struct AiRoleName(/* private fields */);Implementations§
§impl AiRoleName
impl AiRoleName
pub fn new(value: impl AsRef<str>) -> Result<AiRoleName, AiRoleError>
pub fn as_str(&self) -> &str
pub fn value(&self) -> &str
pub fn into_string(self) -> String
Trait Implementations§
§impl AsRef<str> for AiRoleName
impl AsRef<str> for AiRoleName
§impl Clone for AiRoleName
impl Clone for AiRoleName
§fn clone(&self) -> AiRoleName
fn clone(&self) -> AiRoleName
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 AiRoleName
impl Debug for AiRoleName
§impl Display for AiRoleName
impl Display for AiRoleName
§impl FromStr for AiRoleName
impl FromStr for AiRoleName
§type Err = AiRoleError
type Err = AiRoleError
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<AiRoleName, <AiRoleName as FromStr>::Err>
fn from_str(value: &str) -> Result<AiRoleName, <AiRoleName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AiRoleName
impl Hash for AiRoleName
§impl Ord for AiRoleName
impl Ord for AiRoleName
§impl PartialEq for AiRoleName
impl PartialEq for AiRoleName
§impl PartialOrd for AiRoleName
impl PartialOrd for AiRoleName
§impl TryFrom<&str> for AiRoleName
impl TryFrom<&str> for AiRoleName
§type Error = AiRoleError
type Error = AiRoleError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<AiRoleName, <AiRoleName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<AiRoleName, <AiRoleName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for AiRoleName
impl StructuralPartialEq for AiRoleName
Auto Trait Implementations§
impl Freeze for AiRoleName
impl RefUnwindSafe for AiRoleName
impl Send for AiRoleName
impl Sync for AiRoleName
impl Unpin for AiRoleName
impl UnsafeUnpin for AiRoleName
impl UnwindSafe for AiRoleName
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