pub struct FeedRetentionPolicy {
pub age_limit_in_days: Option<i32>,
pub count_limit: Option<i32>,
pub days_to_keep_recently_downloaded_packages: Option<i32>,
}
Expand description
Retention policy settings.
Fields§
§age_limit_in_days: Option<i32>
This attribute is deprecated and is not honoured by retention
count_limit: Option<i32>
Maximum versions to preserve per package and package type.
days_to_keep_recently_downloaded_packages: Option<i32>
Number of days to preserve a package version after its latest download.
Implementations§
Trait Implementations§
source§impl Clone for FeedRetentionPolicy
impl Clone for FeedRetentionPolicy
source§fn clone(&self) -> FeedRetentionPolicy
fn clone(&self) -> FeedRetentionPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FeedRetentionPolicy
impl Debug for FeedRetentionPolicy
source§impl Default for FeedRetentionPolicy
impl Default for FeedRetentionPolicy
source§fn default() -> FeedRetentionPolicy
fn default() -> FeedRetentionPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FeedRetentionPolicy
impl<'de> Deserialize<'de> for FeedRetentionPolicy
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for FeedRetentionPolicy
impl PartialEq for FeedRetentionPolicy
source§fn eq(&self, other: &FeedRetentionPolicy) -> bool
fn eq(&self, other: &FeedRetentionPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FeedRetentionPolicy
impl Serialize for FeedRetentionPolicy
impl StructuralPartialEq for FeedRetentionPolicy
Auto Trait Implementations§
impl RefUnwindSafe for FeedRetentionPolicy
impl Send for FeedRetentionPolicy
impl Sync for FeedRetentionPolicy
impl Unpin for FeedRetentionPolicy
impl UnwindSafe for FeedRetentionPolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more