pub struct CreateJobRequest {
pub portal_url: String,
pub portal_name: Option<String>,
pub force_full_sync: bool,
pub max_retries: Option<u32>,
pub url_template: Option<String>,
pub language: Option<String>,
pub portal_type: PortalType,
pub profile: Option<String>,
pub sparql_endpoint: Option<String>,
}Expand description
Request to create a new harvest job.
Fields§
§portal_url: StringTarget portal URL.
portal_name: Option<String>Optional friendly portal name.
force_full_sync: boolWhether to force full sync.
max_retries: Option<u32>Maximum retries (uses default if None).
url_template: Option<String>Optional URL template for dataset landing pages.
language: Option<String>Preferred language for multilingual portals.
portal_type: PortalTypeType of portal (ckan, dcat, etc.).
profile: Option<String>Optional DCAT profile (e.g., "sparql" for SPARQL endpoints).
sparql_endpoint: Option<String>Optional SPARQL endpoint override for DCAT harvests.
Implementations§
Source§impl CreateJobRequest
impl CreateJobRequest
Sourcepub fn new(portal_url: impl Into<String>) -> Self
pub fn new(portal_url: impl Into<String>) -> Self
Create a new job request for the given portal URL.
Sourcepub fn with_full_sync(self) -> Self
pub fn with_full_sync(self) -> Self
Force full sync (bypass incremental).
Sourcepub fn with_max_retries(self, max: u32) -> Self
pub fn with_max_retries(self, max: u32) -> Self
Set maximum retries.
Sourcepub fn with_url_template(self, template: impl Into<String>) -> Self
pub fn with_url_template(self, template: impl Into<String>) -> Self
Set URL template for dataset landing pages.
Sourcepub fn with_language(self, language: impl Into<String>) -> Self
pub fn with_language(self, language: impl Into<String>) -> Self
Set preferred language for multilingual portals.
Sourcepub fn with_portal_type(self, portal_type: PortalType) -> Self
pub fn with_portal_type(self, portal_type: PortalType) -> Self
Set the portal type.
Sourcepub fn with_profile(self, profile: impl Into<String>) -> Self
pub fn with_profile(self, profile: impl Into<String>) -> Self
Set the DCAT profile (e.g., "sparql").
Sourcepub fn with_sparql_endpoint(self, sparql_endpoint: impl Into<String>) -> Self
pub fn with_sparql_endpoint(self, sparql_endpoint: impl Into<String>) -> Self
Set the SPARQL endpoint override for DCAT harvests.
Trait Implementations§
Source§impl Clone for CreateJobRequest
impl Clone for CreateJobRequest
Source§fn clone(&self) -> CreateJobRequest
fn clone(&self) -> CreateJobRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateJobRequest
impl RefUnwindSafe for CreateJobRequest
impl Send for CreateJobRequest
impl Sync for CreateJobRequest
impl Unpin for CreateJobRequest
impl UnsafeUnpin for CreateJobRequest
impl UnwindSafe for CreateJobRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more