pub struct PromptArchiveId(/* private fields */);Expand description
Unique identifier for an archived prompt.
Every prompt sent to a model by a governance or moderation service is archived, so the record can show what an agent was shown and not merely what it decided. Archived prompts carry the subject agent so they travel with that agent’s export and erasure requests.
Implementations§
Trait Implementations§
Source§impl Clone for PromptArchiveId
impl Clone for PromptArchiveId
Source§fn clone(&self) -> PromptArchiveId
fn clone(&self) -> PromptArchiveId
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 moreimpl Copy for PromptArchiveId
Source§impl Debug for PromptArchiveId
impl Debug for PromptArchiveId
Source§impl Default for PromptArchiveId
impl Default for PromptArchiveId
Source§impl<'de> Deserialize<'de> for PromptArchiveId
impl<'de> Deserialize<'de> for PromptArchiveId
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 PromptArchiveId
impl Display for PromptArchiveId
impl Eq for PromptArchiveId
Source§impl From<PromptArchiveId> for Uuid
impl From<PromptArchiveId> for Uuid
Source§fn from(id: PromptArchiveId) -> Self
fn from(id: PromptArchiveId) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for PromptArchiveId
impl From<Uuid> for PromptArchiveId
Source§impl FromStr for PromptArchiveId
Every id round-trips through its own Display.
impl FromStr for PromptArchiveId
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 PromptArchiveId
impl Hash for PromptArchiveId
Source§impl Ord for PromptArchiveId
impl Ord for PromptArchiveId
Source§fn cmp(&self, other: &PromptArchiveId) -> Ordering
fn cmp(&self, other: &PromptArchiveId) -> 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 PromptArchiveId
impl PartialEq for PromptArchiveId
Source§impl PartialOrd for PromptArchiveId
impl PartialOrd for PromptArchiveId
Source§impl Serialize for PromptArchiveId
impl Serialize for PromptArchiveId
impl StructuralPartialEq for PromptArchiveId
Auto Trait Implementations§
impl Freeze for PromptArchiveId
impl RefUnwindSafe for PromptArchiveId
impl Send for PromptArchiveId
impl Sync for PromptArchiveId
impl Unpin for PromptArchiveId
impl UnsafeUnpin for PromptArchiveId
impl UnwindSafe for PromptArchiveId
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