pub struct CounterDecl {
pub name: Ident,
pub key_type: Ident,
pub cap: i64,
pub reset: String,
pub timezone: Option<String>,
pub shared: bool,
pub span: SourceSpan,
}Fields§
§name: Ident§key_type: Ident§cap: i64§reset: String§timezone: Option<String>IANA timezone anchoring the reset-period boundary (std.coord slice 3);
None anchors to UTC and draws a default-UTC warning.
span: SourceSpanTrait Implementations§
Source§impl Clone for CounterDecl
impl Clone for CounterDecl
Source§fn clone(&self) -> CounterDecl
fn clone(&self) -> CounterDecl
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 moreSource§impl Debug for CounterDecl
impl Debug for CounterDecl
impl Eq for CounterDecl
Source§impl PartialEq for CounterDecl
impl PartialEq for CounterDecl
impl StructuralPartialEq for CounterDecl
Auto Trait Implementations§
impl Freeze for CounterDecl
impl RefUnwindSafe for CounterDecl
impl Send for CounterDecl
impl Sync for CounterDecl
impl Unpin for CounterDecl
impl UnsafeUnpin for CounterDecl
impl UnwindSafe for CounterDecl
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