| 921 | } |
| 922 | |
| 923 | bool RPCArg::IsOptional() const |
| 924 | { |
| 925 | if (m_fallback.index() != 0) { |
| 926 | return true; |
| 927 | } else { |
| 928 | return RPCArg::Optional::NO != std::get<RPCArg::Optional>(m_fallback); |
| 929 | } |
| 930 | } |
| 931 | |
| 932 | std::string RPCArg::ToDescriptionString(bool is_named_arg) const |
| 933 | { |
no test coverage detected