Module Multipart.Part_number

type t

Opaque S3 multipart part number. S3 accepts part numbers from 1 to 10,000 inclusive.

val of_int : int -> (t, Awskit.Error.t) Stdlib.result

Validate and wrap a multipart part number.

val of_int_exn : int -> t

Like of_int, but raises Awskit.Error.Awskit_error carrying the structured validation error on validation failure.

val to_int : t -> int

Return the raw part number.

val pp : Stdlib.Format.formatter -> t -> unit

Pretty-print the part number.

val equal : t -> t -> bool

Compare two part numbers.