Module pastemyst::time[][src]

This module is extremely useful for time-related operations.

So far, the only method that the API offers is to convert a date time that expires in pastemyst's time type to unix timestamp.

This mod also offers pastemyst's "time type" which was mentioned earlier above.

API Docs

The relevent API documentation for this module is: https://paste.myst.rs/api-docs/time

Modules

expires_in

All the possible values of the expiration of a paste provided by PasteMyst's API v2.

Functions

expires_into_unix

Synchronously sends a request to pastemyst's time module to convert the expires_in field to a unix timestamp. This method is really useful for time related operations where this kind of data is cruicial for certian functionality.

expires_into_unix_async

Asynchronously sends a request to pastemyst's time module to convert the expires_in field to a unix timestamp. This method is really useful for time related operations where this kind of data is cruicial for certian functionality.

Type Definitions

TimeResult

The type provided by the pastemyst lib. It takes a type T and evalutates to that type and a Result like so: Result<T, E> where E has the default value of reqwest::Error. Keep note that E can be overriden.