pub struct PortalEntry {
pub name: String,
pub url: String,
pub portal_type: PortalType,
pub enabled: bool,
pub description: Option<String>,
pub url_template: Option<String>,
pub language: Option<String>,
}Expand description
A single portal entry in the configuration file.
Each portal entry defines a CKAN portal to harvest, including its URL, type, and whether it’s enabled for batch harvesting.
Fields§
§name: StringHuman-readable portal name.
Used for --portal <name> lookup and logging.
url: StringBase URL of the CKAN portal.
Example: “https://dati.comune.milano.it”
portal_type: PortalTypePortal type: ckan, socrata, or dcat.
Defaults to Ckan if not specified.
enabled: boolWhether this portal is enabled for batch harvesting.
Defaults to true if not specified.
description: Option<String>Optional description of the portal.
url_template: Option<String>Optional URL template for dataset landing pages.
Supports placeholders:
{id}— dataset UUID from the CKAN API{name}— dataset slug/name
If not set, defaults to {portal_url}/dataset/{name}.
language: Option<String>Preferred language for multilingual portals (e.g., "en", "de", "fr").
Some portals return title and description as language-keyed objects.
This field controls which language is selected when resolving those fields.
Defaults to "en" when not specified.
Implementations§
Trait Implementations§
Source§impl Clone for PortalEntry
impl Clone for PortalEntry
Source§fn clone(&self) -> PortalEntry
fn clone(&self) -> PortalEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more