error[E0277]: the lease form computes its expiry from the crate's clock, and this table reads the database's
--> tests/ui/manual_lease_clock.rs:14:18
|
14 | type Table = InboxSpec<(Lease<DateTime<Utc>>, Payload, Clock<DatabaseClock>)>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the lease form on `DatabaseClock`
|
= help: the trait `LeaseOnServiceClock` is not implemented for `(Set<ruststream_sqlx::spec::Lease<DateTime<Utc>>>, DatabaseClock)`
= note: drop `.clock::<DatabaseClock>()` and `Clock<DatabaseClock>`, or `.lease(..)` and `Lease<..>` (with the derive: `clock = DatabaseClock`, or the `locked_until` field)
help: the following other types implement trait `LeaseOnServiceClock`
--> src/inbox/spec/rules.rs
|
| impl<Reads> LeaseOnServiceClock for (Unset, Reads) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(Unset, Reads)`
| impl<Reads> LeaseOnServiceClock for (Set<Advisory>, Reads) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(Set<ruststream_sqlx::spec::Advisory>, Reads)`
| impl<Time> LeaseOnServiceClock for (Set<Lease<Time>>, SystemClock) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(Set<ruststream_sqlx::spec::Lease<Time>>, SystemClock)`
= note: required for `InboxSpec<(ruststream_sqlx::spec::Lease<DateTime<Utc>>, ruststream_sqlx::spec::Payload, ruststream_sqlx::spec::Clock<DatabaseClock>)>` to implement `Valid`
note: required by a bound in `ruststream_sqlx::InboxTable::Table`
--> src/inbox/spec/builder.rs
|
| type Table: Valid;
| ^^^^^ required by this bound in `InboxTable::Table`