pub struct DataExportId(/* private fields */);Expand description
Unique identifier for a stored data-export bundle row.
Each row holds one JSONB export + a hashed download token.
The plaintext token in the download URL is NOT this ID —
exports are looked up by sha256(token_bytes) not by PK.
Implementations§
Trait Implementations§
Source§impl Clone for DataExportId
impl Clone for DataExportId
Source§fn clone(&self) -> DataExportId
fn clone(&self) -> DataExportId
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 DataExportId
Source§impl Debug for DataExportId
impl Debug for DataExportId
Source§impl Default for DataExportId
impl Default for DataExportId
Source§impl<'de> Deserialize<'de> for DataExportId
impl<'de> Deserialize<'de> for DataExportId
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 DataExportId
impl Display for DataExportId
impl Eq for DataExportId
Source§impl From<DataExportId> for Uuid
impl From<DataExportId> for Uuid
Source§fn from(id: DataExportId) -> Self
fn from(id: DataExportId) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for DataExportId
impl From<Uuid> for DataExportId
Source§impl FromStr for DataExportId
Every id round-trips through its own Display.
impl FromStr for DataExportId
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 DataExportId
impl Hash for DataExportId
Source§impl Ord for DataExportId
impl Ord for DataExportId
Source§fn cmp(&self, other: &DataExportId) -> Ordering
fn cmp(&self, other: &DataExportId) -> 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 DataExportId
impl PartialEq for DataExportId
Source§impl PartialOrd for DataExportId
impl PartialOrd for DataExportId
Source§impl Serialize for DataExportId
impl Serialize for DataExportId
impl StructuralPartialEq for DataExportId
Auto Trait Implementations§
impl Freeze for DataExportId
impl RefUnwindSafe for DataExportId
impl Send for DataExportId
impl Sync for DataExportId
impl Unpin for DataExportId
impl UnsafeUnpin for DataExportId
impl UnwindSafe for DataExportId
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