pub struct ModelProviderRequestId(/* private fields */);Expand description
An opaque request correlation identifier reported or recognized by a model provider.
The exact visible-ASCII value is retained without trimming or
normalization and redacted from Debug output.
Implementations§
Source§impl ModelProviderRequestId
impl ModelProviderRequestId
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 ModelProviderRequestId
impl AsRef<str> for ModelProviderRequestId
Source§impl Borrow<str> for ModelProviderRequestId
impl Borrow<str> for ModelProviderRequestId
Source§impl Clone for ModelProviderRequestId
impl Clone for ModelProviderRequestId
Source§impl Debug for ModelProviderRequestId
impl Debug for ModelProviderRequestId
Source§impl<'de> Deserialize<'de> for ModelProviderRequestId
impl<'de> Deserialize<'de> for ModelProviderRequestId
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 ModelProviderRequestId
Source§impl FromStr for ModelProviderRequestId
impl FromStr for ModelProviderRequestId
Source§impl Hash for ModelProviderRequestId
impl Hash for ModelProviderRequestId
Source§impl JsonSchema for ModelProviderRequestId
impl JsonSchema for ModelProviderRequestId
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 ModelProviderRequestId
impl Ord for ModelProviderRequestId
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 ModelProviderRequestId
impl PartialEq for ModelProviderRequestId
Source§impl PartialOrd for ModelProviderRequestId
impl PartialOrd for ModelProviderRequestId
Source§impl Serialize for ModelProviderRequestId
impl Serialize for ModelProviderRequestId
impl StructuralPartialEq for ModelProviderRequestId
Source§impl TryFrom<&str> for ModelProviderRequestId
impl TryFrom<&str> for ModelProviderRequestId
Auto Trait Implementations§
impl Forget for ModelProviderRequestId
impl Freeze for ModelProviderRequestId
impl Move for ModelProviderRequestId
impl RefUnwindSafe for ModelProviderRequestId
impl Send for ModelProviderRequestId
impl Sync for ModelProviderRequestId
impl Unpin for ModelProviderRequestId
impl UnsafeUnpin for ModelProviderRequestId
impl UnwindSafe for ModelProviderRequestId
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