pub struct WriteOptions {
pub spreadsheet_id: String,
pub verb: WriteVerb,
pub range: Option<String>,
pub sheet: Option<String>,
pub values: Vec<Vec<String>>,
pub input: ValueInputOption,
pub dry_run: bool,
pub lease_token: Option<String>,
pub ledger_path: PathBuf,
}Expand description
Per-call options.
Fields§
§spreadsheet_id: StringSpreadsheet id.
verb: WriteVerbWhich mutation to perform.
range: Option<String>An explicit A1 range, which may carry its own Sheet! prefix.
sheet: Option<String>A sheet title, supplying a prefix for a bare range.
values: Vec<Vec<String>>Row-major values to write. Empty for WriteVerb::Clear.
input: ValueInputOptionHow the API should interpret the values.
dry_run: boolClassify only; never call a mutating endpoint.
lease_token: Option<String>The lease token presented via --lease. Checked only when the
deciding rule requires one
(write_gate::decided_rule_requires_lease, ADR-0080 §1/§9);
None is only ever valid when it does not.
ledger_path: PathBufPath to the lease ledger the token is checked against. Production
callers pass crate::drive::lease::ledger::ledger_path’s own
result; tests pass a path under a tempdir.
Trait Implementations§
Source§impl Clone for WriteOptions
impl Clone for WriteOptions
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnsafeUnpin for WriteOptions
impl UnwindSafe for WriteOptions
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