Struct ReadingMultiRangesRequestBuilder

Source
pub struct ReadingMultiRangesRequestBuilder { /* private fields */ }

Implementations§

Source§

impl ReadingMultiRangesRequestBuilder

Source

pub fn spreadsheet_token(self, spreadsheet_token: impl ToString) -> Self

Source

pub fn ranges(self, ranges: impl ToString) -> Self

多个查询范围,范围之间使用逗号分隔,如range1,range2。⁣其中 range 包含 sheetId 与单元格范围两部分,目前支持四种索引方式,详见 在线表格开发指南 。若查询范围中使用形如<sheetId>!<开始单元格>:<结束列>的范围时,仅支持获取100列数据。

Source

pub fn value_render_option(self, value_render_option: impl ToString) -> Self

指定单元格数据的格式。可选值为如下所示。当参数缺省时,默认不进行公式计算,返回公式本身; 数值不进行数字格式化。

  • valueRenderOption=ToString:返回纯文本的值(数值类型除外)
  • valueRenderOption=FormattedValue:计算并格式化单元格
  • valueRenderOption=Formula:单元格中含有公式时,返回公式本身
  • valueRenderOption=UnformattedValue:计算但不对单元格进行格式化
Source

pub fn date_time_render_option( self, date_time_render_option: impl ToString, ) -> Self

指定数据类型为日期、时间、或时间日期的单元格数据的格式。

  • 当参数缺省时,默认返回浮点数值,整数部分为自 1899 年 12 月 30 日以来的天数;小数部分为该时间占 24 小时的份额。例如:若时间为 1900 年 1 月 1 日中午 12 点,则默认返回 2.5。其中,2 表示 1900 年 1 月 1 日为 1899 年12 月 30 日之后的 2 天;0.5 表示 12 点占 24 小时的二分之一,即 12/24=0.5。
  • dateTimeRenderOption=FormattedString:计算并对时间、日期类型数据进行格式化, 但不会对数字进行格式化。将返回格式化后的字符串。详见电子表格常见问题
Source

pub fn user_id_type(self, user_id_type: impl ToString) -> Self

当单元格中包含@用户等涉及用户信息的元素时,该参数可指定返回的用户 ID 类型。默认为 lark_id,建议选择 open_id 或 union_id。了解更多,参考用户身份概述。

  • open_id:用户在应用内的身份。 同一个 user_id 在不同应用中的 open_id 不同,其值统一以 ou_ 为前缀,如ou_c99c5f35d542efc7ee492afe11af19ef。
  • union_id:用户在同一应用服务商提供的多个应用间的统一身份。
Source

pub fn build(self) -> ReadingMultipleRangeRequest

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,