pub struct CreateJobRequest {
pub portal_url: String,
pub portal_name: Option<String>,
pub force_full_sync: bool,
pub max_retries: Option<u32>,
}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).
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.
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more