mirror of
https://github.com/minio/minio-rs.git
synced 2025-12-06 23:36:52 +08:00
Size should be platform independent and 64 bit. (#93)
This commit is contained in:
parent
6e1af9166f
commit
6f2dd62691
@ -99,9 +99,9 @@ fn parse_list_objects_contents(
|
||||
&content.get_child_text_or_error("LastModified")?,
|
||||
)?);
|
||||
let etag = content.get_child_text("ETag");
|
||||
let size: Option<usize> = content
|
||||
let size: Option<u64> = content
|
||||
.get_child_text("Size")
|
||||
.map(|x| x.parse::<usize>())
|
||||
.map(|x| x.parse::<u64>())
|
||||
.transpose()?;
|
||||
let storage_class = content.get_child_text("StorageClass");
|
||||
let is_latest = content
|
||||
|
||||
@ -155,7 +155,7 @@ pub struct ListEntry {
|
||||
pub etag: Option<String>, // except DeleteMarker
|
||||
pub owner_id: Option<String>,
|
||||
pub owner_name: Option<String>,
|
||||
pub size: Option<usize>, // except DeleteMarker
|
||||
pub size: Option<u64>, // except DeleteMarker
|
||||
pub storage_class: Option<String>,
|
||||
pub is_latest: bool, // except ListObjects V1/V2
|
||||
pub version_id: Option<String>, // except ListObjects V1/V2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user