pub struct ModelRevision(/* private fields */);Implementations§
Source§impl ModelRevision
impl ModelRevision
pub fn new(value: impl Into<String>) -> Result<ModelRevision, IdentityError>
pub fn as_str(&self) -> &str
pub fn into_string(self) -> String
Trait Implementations§
Source§impl Clone for ModelRevision
impl Clone for ModelRevision
Source§fn clone(&self) -> ModelRevision
fn clone(&self) -> ModelRevision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelRevision
impl Debug for ModelRevision
Source§impl<'de> Deserialize<'de> for ModelRevision
impl<'de> Deserialize<'de> for ModelRevision
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ModelRevision, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ModelRevision, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ModelRevision
impl Display for ModelRevision
impl Eq for ModelRevision
Source§impl FromStr for ModelRevision
impl FromStr for ModelRevision
Source§type Err = IdentityError
type Err = IdentityError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<ModelRevision, <ModelRevision as FromStr>::Err>
fn from_str( value: &str, ) -> Result<ModelRevision, <ModelRevision as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ModelRevision
impl Hash for ModelRevision
Source§impl JsonSchema for ModelRevision
impl JsonSchema for ModelRevision
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl Ord for ModelRevision
impl Ord for ModelRevision
Source§fn cmp(&self, other: &ModelRevision) -> Ordering
fn cmp(&self, other: &ModelRevision) -> Ordering
1.21.0 (const: unstable) · 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
Source§impl PartialEq for ModelRevision
impl PartialEq for ModelRevision
Source§fn eq(&self, other: &ModelRevision) -> bool
fn eq(&self, other: &ModelRevision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ModelRevision
impl PartialOrd for ModelRevision
Source§impl Serialize for ModelRevision
impl Serialize for ModelRevision
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ModelRevision
Auto Trait Implementations§
impl Freeze for ModelRevision
impl RefUnwindSafe for ModelRevision
impl Send for ModelRevision
impl Sync for ModelRevision
impl Unpin for ModelRevision
impl UnsafeUnpin for ModelRevision
impl UnwindSafe for ModelRevision
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