pub struct TicketV1 {
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 reservation_id: String,
pub upload_session: Option<Vec<u8>>,
}Expand description
An open upload ticket. Its audience is bound by the shard’s deployment.
Fields§
Authority generation authorized when this ticket was created.
repo: RepoNameRepository name within the partition’s namespace.
ref_name: StringRef authorized to consume the ticket.
signer: HashAuthorized signer.
pack_id: HashExpected pack id.
bytes: u64Declared nonzero pack size.
part_size: u64Power-of-two part size, at least the protocol minimum.
expires_at_ms: u64Expiry, Unix milliseconds.
created_at_ms: u64Creation, Unix milliseconds.
reservation_id: StringOne durable outcome id, including synthetic ids for default admission.
upload_session: Option<Vec<u8>>Backend multipart upload session, when allocated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TicketV1
impl<'de> Deserialize<'de> for TicketV1
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
impl Eq for TicketV1
impl StructuralPartialEq for TicketV1
Auto Trait Implementations§
impl Freeze for TicketV1
impl RefUnwindSafe for TicketV1
impl Send for TicketV1
impl Sync for TicketV1
impl Unpin for TicketV1
impl UnsafeUnpin for TicketV1
impl UnwindSafe for TicketV1
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