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