userver: grpc_protovalidate::ValidationResult Class Reference
Loading...
Searching...
No Matches
grpc_protovalidate::ValidationResult Class Reference

Detailed Description

Definition at line 71 of file validate.hpp.

Public Member Functions

 ValidationResult (ValidationError error)
 
bool IsSuccess () const
 
 operator bool () const
 
const ValidationErrorGetError () const &
 
ValidationError && GetError () &&
 

Constructor & Destructor Documentation

◆ ValidationResult()

grpc_protovalidate::ValidationResult::ValidationResult ( ValidationError  error)

Definition at line 98 of file validate.cpp.

Member Function Documentation

◆ GetError() [1/2]

ValidationError && grpc_protovalidate::ValidationResult::GetError ( ) &&
Returns
ValidationError with the description of the violations.
Precondition
IsSuccess() == true.

Definition at line 109 of file validate.cpp.

◆ GetError() [2/2]

const ValidationError & grpc_protovalidate::ValidationResult::GetError ( ) const &
Returns
ValidationError with the description of the violations.
Precondition
IsSuccess() == true.

Definition at line 102 of file validate.cpp.

◆ IsSuccess()

bool grpc_protovalidate::ValidationResult::IsSuccess ( ) const
Returns
true iff the validation found no violations.

Definition at line 100 of file validate.cpp.

◆ operator bool()

grpc_protovalidate::ValidationResult::operator bool ( ) const
inlineexplicit

Definition at line 79 of file validate.hpp.


The documentation for this class was generated from the following files: