libblobd_direct/incomplete_token.rs
1use serde::Deserialize;
2use serde::Serialize;
3use std::fmt;
4use std::fmt::Debug;
5
6// This is intentionally an opaque token. To allow transporting it for library implementers, Serialize and Deserialize are derived.
7#[derive(Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
8pub struct IncompleteToken {
9 // WARNING: This will change after committing, so cannot be depended on. Currently, `IncompleteToken` is opaque so this is not an issue.
10 pub(crate) object_id: u64,
11 pub(crate) partition_idx: usize,
12}
13
14impl Debug for IncompleteToken {
15 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
16 f.debug_struct("IncompleteToken").finish()
17 }
18}