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>,
}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.
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.
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 · 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