Trait lemmy_db_queries::ApubObject [−][src]
pub trait ApubObject {
fn last_refreshed_at(&self) -> Option<NaiveDateTime>;
fn read_from_apub_id(
conn: &PgConnection,
object_id: &DbUrl
) -> Result<Self, Error>
where
Self: Sized;
}
Required methods
fn last_refreshed_at(&self) -> Option<NaiveDateTime>
fn last_refreshed_at(&self) -> Option<NaiveDateTime>
If this object should be refetched after a certain interval, it should return the last refresh time here. This is mainly used to update remote actors.