Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
oauth_duration.h
1#ifndef SOURCEMETA_CORE_OAUTH_DURATION_H_
2#define SOURCEMETA_CORE_OAUTH_DURATION_H_
3
4#ifndef SOURCEMETA_CORE_OAUTH_EXPORT
5#include <sourcemeta/core/oauth_export.h>
6#endif
7
8#include <sourcemeta/core/json.h>
9
10#include <chrono> // std::chrono::seconds
11#include <optional> // std::optional
12
13namespace sourcemeta::core {
14
36SOURCEMETA_CORE_OAUTH_EXPORT
37auto oauth_json_seconds_member(const JSON &data, const JSON::StringView name,
38 const JSON::Object::hash_type hash)
39 -> std::optional<std::chrono::seconds>;
40
41} // namespace sourcemeta::core
42
43#endif
std::basic_string_view< Char, CharTraits > StringView
The string view type used by the JSON document.
Definition json_value.h:54
Definition json_value.h:39
SOURCEMETA_CORE_OAUTH_EXPORT auto oauth_json_seconds_member(const JSON &data, const JSON::StringView name, const JSON::Object::hash_type hash) -> std::optional< std::chrono::seconds >