pub struct UpdateTimeseriesTableRequest {
pub table_name: String,
pub ttl_seconds: Option<i32>,
pub allow_update_attributes: Option<bool>,
pub meta_ttl_seconds: Option<i32>,
}
Expand description
更新时序表的配置信息或时序时间线表的配置信息
注意: 表格选项(ttl_seconds
)和元数据选项( allow_update_attributes
和 meta_ttl_seconds
),
可以视为两部分设置,不可以在同一个请求中同时修改这两部分。如果需要修改,那么就创建 2 个请求,分别修改。
官方文档:https://help.aliyun.com/zh/tablestore/developer-reference/updatetimeseriestable
Fields§
§table_name: String
表名
ttl_seconds: Option<i32>
数据生命周期,单位为秒。 默认为 -1
表示永不过期。最低 86400
秒(1 天)
allow_update_attributes: Option<bool>
是否允许更新时间线属性列
meta_ttl_seconds: Option<i32>
时间线生命周期,单位为秒。取值必须大于等于 604800
秒(即 7 天)或者必须为 -1
(数据永不过期)。
Implementations§
Source§impl UpdateTimeseriesTableRequest
impl UpdateTimeseriesTableRequest
pub fn new(table_name: &str) -> Self
Sourcepub fn ttl_seconds(self, ttl_seconds: i32) -> Self
pub fn ttl_seconds(self, ttl_seconds: i32) -> Self
设置数据生命周期,单位为秒。 默认为 -1
表示永不过期。最低 86400
秒(1 天)
Sourcepub fn allow_update_attributes(self, allow: bool) -> Self
pub fn allow_update_attributes(self, allow: bool) -> Self
设置是否允许更新时间线属性列
Sourcepub fn meta_ttl_seconds(self, meta_ttl_seconds: i32) -> Self
pub fn meta_ttl_seconds(self, meta_ttl_seconds: i32) -> Self
设置时间线生命周期,单位为秒。取值必须大于等于 604800
秒(即 7 天)或者必须为 -1
(数据永不过期)。
Trait Implementations§
Source§impl Clone for UpdateTimeseriesTableRequest
impl Clone for UpdateTimeseriesTableRequest
Source§fn clone(&self) -> UpdateTimeseriesTableRequest
fn clone(&self) -> UpdateTimeseriesTableRequest
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 moreSource§impl Debug for UpdateTimeseriesTableRequest
impl Debug for UpdateTimeseriesTableRequest
Source§impl Default for UpdateTimeseriesTableRequest
impl Default for UpdateTimeseriesTableRequest
Source§fn default() -> UpdateTimeseriesTableRequest
fn default() -> UpdateTimeseriesTableRequest
Returns the “default value” for a type. Read more
Source§impl From<UpdateTimeseriesTableRequest> for UpdateTimeseriesTableRequest
impl From<UpdateTimeseriesTableRequest> for UpdateTimeseriesTableRequest
Source§fn from(value: UpdateTimeseriesTableRequest) -> Self
fn from(value: UpdateTimeseriesTableRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateTimeseriesTableRequest
impl RefUnwindSafe for UpdateTimeseriesTableRequest
impl Send for UpdateTimeseriesTableRequest
impl Sync for UpdateTimeseriesTableRequest
impl Unpin for UpdateTimeseriesTableRequest
impl UnwindSafe for UpdateTimeseriesTableRequest
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