#include "client_method_options.h" #include "tvm.h" namespace NYT { template static void MergeMaybe(TMaybe& origin, const TMaybe& patch) { if (patch) { origin = patch; } } void TFormatHints::Merge(const TFormatHints& patch) { if (patch.SkipNullValuesForTNode_) { SkipNullValuesForTNode(true); } MergeMaybe(EnableStringToAllConversion_, patch.EnableStringToAllConversion_); MergeMaybe(EnableAllToStringConversion_, patch.EnableAllToStringConversion_); MergeMaybe(EnableIntegralTypeConversion_, patch.EnableIntegralTypeConversion_); MergeMaybe(EnableIntegralToDoubleConversion_, patch.EnableIntegralToDoubleConversion_); MergeMaybe(EnableTypeConversion_, patch.EnableTypeConversion_); MergeMaybe(ComplexTypeMode_, patch.ComplexTypeMode_); } TCreateClientOptions& TCreateClientOptions::ServiceTicketAuth(const NAuth::IServiceTicketAuthPtrWrapper& wrapper) { ServiceTicketAuth_ = std::make_shared(wrapper); return *this; } } // namespace NYT