near: Remove mapping kind
@@ -331,7 +331,6 @@ impl blockchain::DataSourceTemplate<Chain> for DataSourceTemplate {
#[derive(Clone, Debug, Default, Hash, Eq, PartialEq, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct UnresolvedMapping {
- pub kind: String,
pub api_version: String,
pub language: String,
pub entities: Vec<String>,
@@ -349,7 +348,6 @@ impl UnresolvedMapping {
logger: &Logger,
) -> Result<Mapping, Error> {
let UnresolvedMapping {
- kind,
api_version,
language,
entities,
@@ -364,7 +362,6 @@ impl UnresolvedMapping {
let module_bytes = resolver.cat(logger, &link).await?;
Ok(Mapping {
- kind,
api_version,
language,
entities,
@@ -378,7 +375,6 @@ impl UnresolvedMapping {
#[derive(Clone, Debug)]
pub struct Mapping {
- pub kind: String,
pub api_version: semver::Version,
pub language: String,
pub entities: Vec<String>,
