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