proxygen
folly::json_patch::patch_operation Struct Reference

#include <json_patch.h>

Public Attributes

patch_operation_code op_code {patch_operation_code::invalid}
 
json_pointer path
 
Optional< json_pointerfrom
 
Optional< dynamicvalue
 

Friends

bool operator== (patch_operation const &lhs, patch_operation const &rhs)
 
bool operator!= (patch_operation const &lhs, patch_operation const &rhs)
 

Detailed Description

Definition at line 74 of file json_patch.h.

Friends And Related Function Documentation

bool operator!= ( patch_operation const &  lhs,
patch_operation const &  rhs 
)
friend

Definition at line 85 of file json_patch.h.

87  {
88  return !(lhs == rhs);
89  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
bool operator== ( patch_operation const &  lhs,
patch_operation const &  rhs 
)
friend

Definition at line 79 of file json_patch.h.

81  {
82  return lhs.op_code == rhs.op_code && lhs.path == rhs.path &&
83  lhs.from == rhs.from && lhs.value == rhs.value;
84  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649

Member Data Documentation

Optional<json_pointer> folly::json_patch::patch_operation::from

Definition at line 77 of file json_patch.h.

Referenced by folly::json_patch::try_parse().

patch_operation_code folly::json_patch::patch_operation::op_code {patch_operation_code::invalid}

Definition at line 75 of file json_patch.h.

Referenced by folly::json_patch::try_parse().

json_pointer folly::json_patch::patch_operation::path

Definition at line 76 of file json_patch.h.

Referenced by folly::json_patch::try_parse().

Optional<dynamic> folly::json_patch::patch_operation::value

Definition at line 78 of file json_patch.h.

Referenced by folly::json_patch::try_parse().


The documentation for this struct was generated from the following file: