diff --git a/src/file.rs b/src/file.rs index 3f85344..974e916 100644 --- a/src/file.rs +++ b/src/file.rs @@ -271,7 +271,7 @@ impl FileRetentionSetting { pub struct FileRetention { #[serde(rename = "isClientAuthorizedToRead")] can_read: bool, - value: FileRetentionSetting, + value: Option, } impl FileRetention { @@ -280,7 +280,7 @@ impl FileRetention { /// If not authorized to read the settings, returns `None`. pub fn settings(&self) -> Option { if self.can_read { - Some(self.value) + self.value } else { None }