pub struct DocumentTtlFeeTier {
pub max_ttl_seconds: u32,
pub credit_per_byte: u64,
}Expand description
One price tier of short-lived document storage.
Fields§
§max_ttl_seconds: u32The longest remaining lifetime, in seconds, this tier prices.
credit_per_byte: u64Credits charged per byte the document writes.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for DocumentTtlFeeTier
impl<'__de, __Context> BorrowDecode<'__de, __Context> for DocumentTtlFeeTier
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for DocumentTtlFeeTier
impl Clone for DocumentTtlFeeTier
Source§fn clone(&self) -> DocumentTtlFeeTier
fn clone(&self) -> DocumentTtlFeeTier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DocumentTtlFeeTier
Source§impl Debug for DocumentTtlFeeTier
impl Debug for DocumentTtlFeeTier
Source§impl<__Context> Decode<__Context> for DocumentTtlFeeTier
impl<__Context> Decode<__Context> for DocumentTtlFeeTier
Source§impl Default for DocumentTtlFeeTier
impl Default for DocumentTtlFeeTier
Source§fn default() -> DocumentTtlFeeTier
fn default() -> DocumentTtlFeeTier
Returns the “default value” for a type. Read more
Source§impl Encode for DocumentTtlFeeTier
impl Encode for DocumentTtlFeeTier
impl Eq for DocumentTtlFeeTier
Source§impl PartialEq for DocumentTtlFeeTier
impl PartialEq for DocumentTtlFeeTier
impl StructuralPartialEq for DocumentTtlFeeTier
Auto Trait Implementations§
impl Freeze for DocumentTtlFeeTier
impl RefUnwindSafe for DocumentTtlFeeTier
impl Send for DocumentTtlFeeTier
impl Sync for DocumentTtlFeeTier
impl Unpin for DocumentTtlFeeTier
impl UnsafeUnpin for DocumentTtlFeeTier
impl UnwindSafe for DocumentTtlFeeTier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
Source§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
Performs the conversion.
Source§impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
Source§type Error = <U as TryFromPlatformVersioned<T>>::Error
type Error = <U as TryFromPlatformVersioned<T>>::Error
The type returned in the event of a conversion error.
Source§fn try_into_platform_versioned(
self,
platform_version: &PlatformVersion,
) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
fn try_into_platform_versioned( self, platform_version: &PlatformVersion, ) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
Performs the conversion.