58 std::optional<std::chrono::system_clock::time_point>
expiry_time)
60 , value_{ std::move(value) }
76 template<
typename Document,
78 std::enable_if_t<!codec::is_transcoder_v<Document>,
bool> =
true,
79 std::enable_if_t<codec::is_transcoder_v<Transcoder>,
bool> =
true>
82 return Transcoder::template decode<Document>(value_);
102 template<
typename Transcoder, std::enable_if_t<codec::is_transcoder_v<Transcoder>,
bool> = true>
103 [[nodiscard]]
auto content_as() const -> typename Transcoder::document_type
105 return Transcoder::decode(value_);
122 -> const std::optional<std::chrono::system_clock::time_point>&
129 std::optional<std::chrono::system_clock::time_point> expiry_time_{};
CAS is a special type that represented in protocol using unsigned 64-bit integer, but only equality c...
Definition cas.hxx:34
Represents result of collection::get.
Definition get_result.hxx:38
auto content_as() const -> typename Transcoder::document_type
Decodes content of the document using given codec.
Definition get_result.hxx:103
get_result(couchbase::cas cas, codec::encoded_value value, std::optional< std::chrono::system_clock::time_point > expiry_time)
Constructs result for get operation.
Definition get_result.hxx:56
auto content_as() const -> Document
Decodes content of the document using given codec.
Definition get_result.hxx:80
auto expiry_time() const -> const std::optional< std::chrono::system_clock::time_point > &
If the document has an expiry, returns the point in time when the loaded document expires.
Definition get_result.hxx:121
Base class for operations of data service.
Definition result.hxx:32
json_transcoder< tao_json_serializer > default_json_transcoder
Definition default_json_transcoder.hxx:28
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
Definition encoded_value.hxx:27