pub struct PromptArchiveResponseId(/* private fields */);Expand description
One archived model response body (prompt_archive_responses), byte
for byte as the API returned it, archived before it is parsed (0.74)
Implementations§
Trait Implementations§
Source§impl Clone for PromptArchiveResponseId
impl Clone for PromptArchiveResponseId
impl Copy for PromptArchiveResponseId
Source§impl Debug for PromptArchiveResponseId
impl Debug for PromptArchiveResponseId
Source§impl Default for PromptArchiveResponseId
impl Default for PromptArchiveResponseId
Source§impl<'de> Deserialize<'de> for PromptArchiveResponseId
impl<'de> Deserialize<'de> for PromptArchiveResponseId
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PromptArchiveResponseId
impl Display for PromptArchiveResponseId
impl Eq for PromptArchiveResponseId
Source§impl From<PromptArchiveResponseId> for Uuid
impl From<PromptArchiveResponseId> for Uuid
Source§fn from(id: PromptArchiveResponseId) -> Self
fn from(id: PromptArchiveResponseId) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for PromptArchiveResponseId
impl From<Uuid> for PromptArchiveResponseId
Source§impl FromStr for PromptArchiveResponseId
Every id round-trips through its own Display.
impl FromStr for PromptArchiveResponseId
Every id round-trips through its own Display.
Without this, anything that parses an id from a string — clap
value_parsers, query strings, config files — has to widen the
field back to a bare Uuid at the boundary and convert by
hand, which is the exact laundering the newtype exists to
prevent. agora-cli carried a hand-written
parse_moderation_action_id for precisely this reason.
Source§impl Hash for PromptArchiveResponseId
impl Hash for PromptArchiveResponseId
Source§impl Ord for PromptArchiveResponseId
impl Ord for PromptArchiveResponseId
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 PromptArchiveResponseId
impl PartialEq for PromptArchiveResponseId
Source§impl PartialOrd for PromptArchiveResponseId
impl PartialOrd for PromptArchiveResponseId
Source§impl Serialize for PromptArchiveResponseId
impl Serialize for PromptArchiveResponseId
impl StructuralPartialEq for PromptArchiveResponseId
Auto Trait Implementations§
impl Freeze for PromptArchiveResponseId
impl RefUnwindSafe for PromptArchiveResponseId
impl Send for PromptArchiveResponseId
impl Sync for PromptArchiveResponseId
impl Unpin for PromptArchiveResponseId
impl UnsafeUnpin for PromptArchiveResponseId
impl UnwindSafe for PromptArchiveResponseId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.