pub struct PostClipzyStoreRequest {
pub compressed_data: String,
pub ttl: Option<f64>,
}Fields§
§compressed_data: String必需:经过加密和 LZString 压缩后的 Base64 字符串。请参考文档首页的JS代码示例。
ttl: Option<f64>可选:片段的留存时间(秒)。正数表示秒数(最大约30天),-1 表示永久存储。默认为 3600。
Implementations§
Source§impl PostClipzyStoreRequest
impl PostClipzyStoreRequest
pub fn new(compressed_data: String) -> PostClipzyStoreRequest
Trait Implementations§
Source§impl Clone for PostClipzyStoreRequest
impl Clone for PostClipzyStoreRequest
Source§fn clone(&self) -> PostClipzyStoreRequest
fn clone(&self) -> PostClipzyStoreRequest
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 PostClipzyStoreRequest
impl Debug for PostClipzyStoreRequest
Source§impl Default for PostClipzyStoreRequest
impl Default for PostClipzyStoreRequest
Source§fn default() -> PostClipzyStoreRequest
fn default() -> PostClipzyStoreRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostClipzyStoreRequest
impl<'de> Deserialize<'de> for PostClipzyStoreRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PostClipzyStoreRequest
impl PartialEq for PostClipzyStoreRequest
Source§impl Serialize for PostClipzyStoreRequest
impl Serialize for PostClipzyStoreRequest
impl StructuralPartialEq for PostClipzyStoreRequest
Auto Trait Implementations§
impl Freeze for PostClipzyStoreRequest
impl RefUnwindSafe for PostClipzyStoreRequest
impl Send for PostClipzyStoreRequest
impl Sync for PostClipzyStoreRequest
impl Unpin for PostClipzyStoreRequest
impl UnwindSafe for PostClipzyStoreRequest
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