pub struct ImportOptions {
pub file: PathBuf,
pub target: String,
pub admin_token: String,
pub apply: bool,
pub merge_by_email: bool,
pub report: Option<PathBuf>,
pub batch_size: usize,
}Expand description
Everything run needs, assembled by the dispatcher so the token is
read from the environment exactly once and travels no further than the
request header.
Fields§
§file: PathBufThe JSONL file of user objects.
target: StringThe venture’s base URL; IMPORT_PATH is appended.
admin_token: StringThe ADMIN_TOKEN value, read from the variable --admin-token-env
names. Never printed.
apply: bool--apply: write. Absent, the run is a dry run.
merge_by_email: bool--merge-by-email: let the server merge into an existing account
sharing the email.
report: Option<PathBuf>--report: where the report JSONL goes. Defaults to
<file>.report.jsonl.
batch_size: usizeUsers per request.
Implementations§
Source§impl ImportOptions
impl ImportOptions
Auto Trait Implementations§
impl Freeze for ImportOptions
impl RefUnwindSafe for ImportOptions
impl Send for ImportOptions
impl Sync for ImportOptions
impl Unpin for ImportOptions
impl UnsafeUnpin for ImportOptions
impl UnwindSafe for ImportOptions
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