thing-contract: is_timestamp_text, Thing's own documented timestamp-text check; CultLib's name is no longer re-exported
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7358e9b1da
commit
097ece5df7
1 changed files with 8 additions and 1 deletions
|
|
@ -33,7 +33,14 @@ pub use result::*;
|
|||
pub use source::*;
|
||||
pub use style::*;
|
||||
|
||||
pub use cultcache_rs::{DatabaseEntry, is_stored_at_stamp};
|
||||
pub use cultcache_rs::DatabaseEntry;
|
||||
|
||||
/// Whether `text` is an RFC 3339 UTC-or-offset date-time of the one shape a Thing timestamp is
|
||||
/// written in (`YYYY-MM-DDThh:mm:ss`, an optional fraction, then `Z` or an offset). A timestamp a
|
||||
/// provider publishes as text is shown as written only when this accepts it.
|
||||
pub fn is_timestamp_text(text: &str) -> bool {
|
||||
cultcache_rs::is_stored_at_stamp(text)
|
||||
}
|
||||
use cultcache_rs::{CultCache, CultCacheRegistry};
|
||||
|
||||
/// Registers the five kinds with a cache.
|
||||
|
|
|
|||
Loading…
Reference in a new issue