pub struct ModelProviderResponseId(/* private fields */);Expand description
An opaque response identifier reported by a model provider.
The exact visible-ASCII value is retained without trimming or
normalization and redacted from Debug output.
Implementations§
Source§impl ModelProviderResponseId
impl ModelProviderResponseId
Sourcepub fn new(
value: impl Into<String>,
) -> Result<Self, ModelProviderIdentifierError>
pub fn new( value: impl Into<String>, ) -> Result<Self, ModelProviderIdentifierError>
Validates and constructs an identifier without copying an owned string.
§Errors
Returns ModelProviderIdentifierError when the value is empty,
oversized, or not entirely visible ASCII without spaces.
Trait Implementations§
Source§impl AsRef<str> for ModelProviderResponseId
impl AsRef<str> for ModelProviderResponseId
Source§impl Borrow<str> for ModelProviderResponseId
impl Borrow<str> for ModelProviderResponseId
Source§impl Clone for ModelProviderResponseId
impl Clone for ModelProviderResponseId
Source§impl Debug for ModelProviderResponseId
impl Debug for ModelProviderResponseId
Source§impl<'de> Deserialize<'de> for ModelProviderResponseId
impl<'de> Deserialize<'de> for ModelProviderResponseId
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelProviderResponseId
Source§impl FromStr for ModelProviderResponseId
impl FromStr for ModelProviderResponseId
Source§impl Hash for ModelProviderResponseId
impl Hash for ModelProviderResponseId
Source§impl JsonSchema for ModelProviderResponseId
impl JsonSchema for ModelProviderResponseId
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
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§impl Ord for ModelProviderResponseId
impl Ord for ModelProviderResponseId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ModelProviderResponseId
impl PartialEq for ModelProviderResponseId
Source§impl PartialOrd for ModelProviderResponseId
impl PartialOrd for ModelProviderResponseId
Source§impl Serialize for ModelProviderResponseId
impl Serialize for ModelProviderResponseId
impl StructuralPartialEq for ModelProviderResponseId
Source§impl TryFrom<&str> for ModelProviderResponseId
impl TryFrom<&str> for ModelProviderResponseId
Auto Trait Implementations§
impl Forget for ModelProviderResponseId
impl Freeze for ModelProviderResponseId
impl Move for ModelProviderResponseId
impl RefUnwindSafe for ModelProviderResponseId
impl Send for ModelProviderResponseId
impl Sync for ModelProviderResponseId
impl Unpin for ModelProviderResponseId
impl UnsafeUnpin for ModelProviderResponseId
impl UnwindSafe for ModelProviderResponseId
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