Files
seadisk/include/seafile/api/default_repo.hpp
T
2026-07-14 21:28:08 +08:00

33 lines
603 B
C++

//
// Created by Shell on 2026-06-18.
//
#ifndef SEADISK_DEFAULT_REPO_HPP
#define SEADISK_DEFAULT_REPO_HPP
#include <optional>
#include <string>
#include <nlohmann/json.hpp>
namespace seafile::api
{
/**
* default repo response
*/
struct DefaultRepo final
{
/**
* indicates if default repo exists
*/
bool exists = false;
/**
* default repo id
*/
std::optional<std::string> repo_id;
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(DefaultRepo, exists, repo_id);
};
}
#endif //SEADISK_DEFAULT_REPO_HPP