KiCad PCB EDA Suite
Loading...
Searching...
No Matches
REMOTE_PROVIDER_PART_MANIFEST Struct Reference

#include <remote_provider_models.h>

Static Public Member Functions

static wxFileName DefaultSchemaPath ()
 
static std::optional< REMOTE_PROVIDER_PART_MANIFESTFromJson (const nlohmann::json &aJson, bool aAllowInsecureLocalhost, wxString &aError)
 
static std::optional< REMOTE_PROVIDER_PART_MANIFESTFromJson (const nlohmann::json &aJson, const wxFileName &aSchemaFile, bool aAllowInsecureLocalhost, wxString &aError)
 

Public Attributes

wxString part_id
 
wxString display_name
 
wxString summary
 
wxString license
 
std::vector< REMOTE_PROVIDER_PART_ASSETassets
 

Detailed Description

Definition at line 92 of file remote_provider_models.h.

Member Function Documentation

◆ DefaultSchemaPath()

wxFileName REMOTE_PROVIDER_PART_MANIFEST::DefaultSchemaPath ( )
static

Definition at line 75 of file remote_provider_models.cpp.

References FN_NORMALIZE_FLAGS, and PATHS::GetStockDataPath().

Referenced by FromJson().

◆ FromJson() [1/2]

std::optional< REMOTE_PROVIDER_PART_MANIFEST > REMOTE_PROVIDER_PART_MANIFEST::FromJson ( const nlohmann::json & aJson,
bool aAllowInsecureLocalhost,
wxString & aError )
static

Definition at line 85 of file remote_provider_models.cpp.

References DefaultSchemaPath(), and FromJson().

Referenced by REMOTE_PROVIDER_CLIENT::FetchManifest(), and FromJson().

◆ FromJson() [2/2]

Member Data Documentation

◆ assets

std::vector<REMOTE_PROVIDER_PART_ASSET> REMOTE_PROVIDER_PART_MANIFEST::assets

◆ display_name

wxString REMOTE_PROVIDER_PART_MANIFEST::display_name

◆ license

wxString REMOTE_PROVIDER_PART_MANIFEST::license

◆ part_id

wxString REMOTE_PROVIDER_PART_MANIFEST::part_id

◆ summary

wxString REMOTE_PROVIDER_PART_MANIFEST::summary

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