Skip to content

Commit

Permalink
changed re-reports of modules
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6e66 committed Feb 19, 2024
1 parent 4800a4c commit ca7e8ac
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pangaea"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
authors = ["Niklas Frondorf <niklas.frondorf@web.de>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion examples/dataset.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use pangaea::{dataset::Dataset, utils::get_elastic_client};
use pangaea::{utils::get_elastic_client, Dataset};
use std::{fs::File, io::Write};

#[tokio::main]
Expand Down
6 changes: 3 additions & 3 deletions src/dataset/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//! Striped down version of Metadata

pub(crate) mod datasettype;

use elasticsearch::Elasticsearch;
use serde_json::Value;

pub(crate) mod datasettype;

pub use self::datasettype::Dataset;
use crate::{metadata::MetaDataType, prelude::*};
use datasettype::Dataset;

impl Dataset {
/// Get metadata over a single dataset with the id `dataset_id`
Expand Down
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#![doc = include_str!("../README.md")]

pub mod dataset;
mod dataset;
pub mod download_data;
mod error;
pub mod metadata;
mod prelude;
pub mod utils;

pub use dataset::Dataset;
pub use metadata::MetaDataType;
pub use dataset::datasettype::{
Author, Dataset, Elevation, Extent, Geographic, Institution, Temporal,
};
8 changes: 3 additions & 5 deletions src/metadata/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
//! Metadata type, that contains every information available to a pangaea-dataset
pub(crate) mod metadatatype;

use elasticsearch::{Elasticsearch, GetParts, SearchParts};
use serde_json::{json, Value};

use crate::prelude::*;

pub(crate) mod metadatatype;

use self::metadatatype::{ElasticSearchResponse, IndexHit};
pub use metadatatype::MetaDataType;
use crate::prelude::*;
pub use metadatatype::*;

impl MetaDataType {
/// Get metadata over a single dataset with the id `dataset_id`
Expand Down

0 comments on commit ca7e8ac

Please sign in to comment.