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