Make TimeBucketAssetResponse required fields mandatory

This commit is contained in:
Joakim Hulthe
2026-04-06 07:57:01 +00:00
parent edc7b4b1f9
commit d04b8b221b

View File

@@ -299,15 +299,15 @@ pub struct TimeBucketAssetResponse {
/// Array of video durations in HH:MM:SS format (null for images)
pub duration: Option<Vec<Option<String>>>,
/// Array of file creation timestamps in UTC
pub file_created_at: Option<Vec<String>>,
pub file_created_at: Vec<String>,
/// Array of asset IDs in the time bucket
pub id: Vec<String>,
/// Array indicating whether each asset is favorited
pub is_favorite: Option<Vec<bool>>,
pub is_favorite: Vec<bool>,
/// Array indicating whether each asset is an image (false for videos)
pub is_image: Option<Vec<bool>>,
pub is_image: Vec<bool>,
/// Array indicating whether each asset is in the trash
pub is_trashed: Option<Vec<bool>>,
pub is_trashed: Vec<bool>,
/// Array of latitude coordinates extracted from EXIF GPS data
pub latitude: Option<Vec<Option<f64>>>,
/// Array of live photo video asset IDs (null for non-live photos)
@@ -317,7 +317,7 @@ pub struct TimeBucketAssetResponse {
/// Array of longitude coordinates extracted from EXIF GPS data
pub longitude: Option<Vec<Option<f64>>>,
/// Array of owner IDs for each asset
pub owner_id: Option<Vec<String>>,
pub owner_id: Vec<String>,
/// Array of projection types for 360° content
pub projection_type: Option<Vec<Option<String>>>,
/// Array of aspect ratios (width/height) for each asset
@@ -327,7 +327,7 @@ pub struct TimeBucketAssetResponse {
/// Array of BlurHash strings for generating asset previews
pub thumbhash: Option<Vec<Option<String>>>,
/// Array of visibility statuses for each asset
pub visibility: Option<Vec<AssetVisibility>>,
pub visibility: Vec<AssetVisibility>,
}
#[cfg(test)]