Skip to content

azure_storage_blob: BlobClientDownloadOptions::range should accept numbers instead of string #4003

@bb8gh

Description

@bb8gh

Feature Summary

azure_storage_blob: BlobClientDownloadOptions::range should accept numbers instead of string

Feature Description

BlobClientDownloadOptions::range is an Option<String>. This is unergonomic, as it requires reading the (API documentation](https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-the-range-header-for-blob-service-operations) to determine how to construct the string. It would be much nicer if this field was something like a Option<Range>, or Option<(u64, Option<u64>)> (this would be start and end values, where the end is optional)), or have range_start and range_end fields. Then it could be clearly documented that the end should be inclusive or exclusive, and the SDK could construct the string (while making sure the end is inclusive, which is subtle).

Use Case

No response

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions