pub struct TicketSpec {
pub authority_generation: Option<u64>,
pub repo: RepoName,
pub ref_name: String,
pub signer: Hash,
pub pack_id: Hash,
pub bytes: u64,
pub part_size: u64,
pub expires_at_ms: u64,
pub created_at_ms: u64,
pub now_ms: u64,
pub reservation_id: String,
pub upload_session: Option<Vec<u8>>,
}Expand description
Caller-validated upload geometry and binding, plus the business clock.
Fields§
Authority generation authorized when this ticket was created.
repo: RepoNameRepository name within this partition’s namespace.
ref_name: StringTarget ref (wire normalization is WP-1.9).
signer: HashAuthenticated signer.
pack_id: HashPack commitment.
bytes: u64Positive committed byte count.
part_size: u64Power-of-two part geometry.
expires_at_ms: u64Expiry, strictly less than seven days after creation.
created_at_ms: u64Creation time.
now_ms: u64Business-clock observation used to classify an existing ticket.
reservation_id: StringAdmission id, or the synthetic replay-scope id.
upload_session: Option<Vec<u8>>Optional backend multipart session identifier.
Trait Implementations§
Source§impl Clone for TicketSpec
impl Clone for TicketSpec
Auto Trait Implementations§
impl Freeze for TicketSpec
impl RefUnwindSafe for TicketSpec
impl Send for TicketSpec
impl Sync for TicketSpec
impl Unpin for TicketSpec
impl UnsafeUnpin for TicketSpec
impl UnwindSafe for TicketSpec
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