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