pub struct ModelProviderReplayFormat(/* private fields */);Expand description
Versioned adapter-owned syntax for one exact provider replay fragment.
The identifier is data, not executable dispatch authority. A selected adapter must explicitly recognize the exact value before provider I/O.
Implementations§
Source§impl ModelProviderReplayFormat
impl ModelProviderReplayFormat
Sourcepub fn new(
value: impl Into<String>,
) -> Result<Self, ModelProviderReplayFormatError>
pub fn new( value: impl Into<String>, ) -> Result<Self, ModelProviderReplayFormatError>
Validates one lowercase dot-separated adapter format identifier.
§Errors
Returns ModelProviderReplayFormatError for an empty, oversized, or
syntactically unstable identifier.
Trait Implementations§
Source§impl Clone for ModelProviderReplayFormat
impl Clone for ModelProviderReplayFormat
Source§impl Debug for ModelProviderReplayFormat
impl Debug for ModelProviderReplayFormat
Source§impl<'de> Deserialize<'de> for ModelProviderReplayFormat
impl<'de> Deserialize<'de> for ModelProviderReplayFormat
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
Source§impl Display for ModelProviderReplayFormat
impl Display for ModelProviderReplayFormat
impl Eq for ModelProviderReplayFormat
Source§impl FromStr for ModelProviderReplayFormat
impl FromStr for ModelProviderReplayFormat
Source§impl Hash for ModelProviderReplayFormat
impl Hash for ModelProviderReplayFormat
Source§impl JsonSchema for ModelProviderReplayFormat
impl JsonSchema for ModelProviderReplayFormat
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 ModelProviderReplayFormat
impl Ord for ModelProviderReplayFormat
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 PartialOrd for ModelProviderReplayFormat
impl PartialOrd for ModelProviderReplayFormat
impl StructuralPartialEq for ModelProviderReplayFormat
Auto Trait Implementations§
impl Forget for ModelProviderReplayFormat
impl Freeze for ModelProviderReplayFormat
impl Move for ModelProviderReplayFormat
impl RefUnwindSafe for ModelProviderReplayFormat
impl Send for ModelProviderReplayFormat
impl Sync for ModelProviderReplayFormat
impl Unpin for ModelProviderReplayFormat
impl UnsafeUnpin for ModelProviderReplayFormat
impl UnwindSafe for ModelProviderReplayFormat
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