Searched refs:ErrorOr (Results 1 – 6 of 6) sorted by relevance
28 struct ErrorOr { struct30 explicit ErrorOr(Args&&... args) : data_(kIndex1, std::forward<Args>(args)...) {} in ErrorOr() function52 static ErrorOr<T> MakeError(const std::string& message) { in MakeError() argument53 return ErrorOr<T>(message, Tag::kDummy); in MakeError()60 ErrorOr(const std::string& msg, Tag) : data_(kIndex0, msg) {} in ErrorOr() function66 inline ErrorOr<T> MakeError(const std::string& message) { in MakeError() argument67 return ErrorOr<T>::MakeError(message); in MakeError()
29 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content,38 ErrorOr<T> JsonStringToMessage(const std::string& content) { in JsonStringToMessage()39 ErrorOr<T> ret; in JsonStringToMessage()56 ErrorOr<std::string> MessageToJsonString(const google::protobuf::Message& message);
39 ErrorOr<std::string> MessageToJsonString(const Message& message) { in MessageToJsonString()53 return ErrorOr<std::string>(std::move(json)); in MessageToJsonString()57 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content, Message* message) { in JsonStringToMessage()69 return ErrorOr<std::monostate>(); in JsonStringToMessage()
85 ErrorOr<std::string> FormatJson(const std::string& json, google::protobuf::Message* scratch_space);
201 ErrorOr<std::string> FormatJson(const std::string& json, google::protobuf::Message* scratch_space) { in FormatJson()
147 ErrorOr<Parent> TestEmbeddedError(const std::string& json, const std::string& unknown_key) { in TestEmbeddedError()