Searched refs:ErrorOr (Results 1 – 6 of 6) sorted by relevance
29 struct ErrorOr { struct31 explicit ErrorOr(Args&&... args) : data_(kIndex1, std::forward<Args>(args)...) {} in ErrorOr() function53 static ErrorOr<T> MakeError(const std::string& message) { in MakeError() argument54 return ErrorOr<T>(message, Tag::kDummy); in MakeError()61 ErrorOr(const std::string& msg, Tag) : data_(kIndex0, msg) {} in ErrorOr() argument67 inline ErrorOr<T> MakeError(const std::string& message) { in MakeError() argument68 return ErrorOr<T>::MakeError(message); in MakeError()
30 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content,39 ErrorOr<T> JsonStringToMessage(const std::string& content) { in JsonStringToMessage()40 ErrorOr<T> ret; in JsonStringToMessage()57 ErrorOr<std::string> MessageToJsonString(const google::protobuf::Message& message);
40 ErrorOr<std::string> MessageToJsonString(const Message& message) { in MessageToJsonString()54 return ErrorOr<std::string>(std::move(json)); in MessageToJsonString()58 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content, Message* message) { in JsonStringToMessage()70 return ErrorOr<std::monostate>(); in JsonStringToMessage()
87 ErrorOr<std::string> FormatJson(const std::string& json,
210 ErrorOr<std::string> FormatJson(const std::string& json, in FormatJson()
151 ErrorOr<Parent> TestEmbeddedError(const std::string& json, in TestEmbeddedError()