Skip to main content

Stored

Trait Stored 

Source
pub trait Stored:
    Clone
    + Send
    + Sync
    + 'static {
    // Required methods
    fn key(&self) -> String;
    fn last_updated(&self) -> DateTime;
}
Available on crate feature testkit only.
Expand description

An object that a store can hold: it has an id and a last_updated.

Required Methods§

Source

fn key(&self) -> String

The id this object is keyed by, compared case-insensitively.

Source

fn last_updated(&self) -> DateTime

The last_updated the pagination filters on.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§