pub struct ListDocumentBlocksRequest {
pub document_id: String,
pub page_size: Option<i32>,
pub page_token: Option<String>,
}Expand description
获取文档所有块请求参数
Fields§
§document_id: String文档ID
page_size: Option<i32>分页大小
page_token: Option<String>分页标记
Implementations§
Source§impl ListDocumentBlocksRequest
impl ListDocumentBlocksRequest
pub fn builder() -> ListDocumentBlocksRequestBuilder
pub fn new(document_id: impl Into<String>) -> Self
pub fn with_page_size(self, page_size: i32) -> Self
pub fn with_page_token(self, page_token: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ListDocumentBlocksRequest
impl Clone for ListDocumentBlocksRequest
Source§fn clone(&self) -> ListDocumentBlocksRequest
fn clone(&self) -> ListDocumentBlocksRequest
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 ListDocumentBlocksRequest
impl Debug for ListDocumentBlocksRequest
Source§impl Default for ListDocumentBlocksRequest
impl Default for ListDocumentBlocksRequest
Source§fn default() -> ListDocumentBlocksRequest
fn default() -> ListDocumentBlocksRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListDocumentBlocksRequest
impl<'de> Deserialize<'de> for ListDocumentBlocksRequest
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 ExecutableBuilder<DocumentService, ListDocumentBlocksRequest, BaseResponse<ListDocumentBlocksRespData>> for ListDocumentBlocksRequestBuilder
impl ExecutableBuilder<DocumentService, ListDocumentBlocksRequest, BaseResponse<ListDocumentBlocksRespData>> for ListDocumentBlocksRequestBuilder
Source§fn build(self) -> ListDocumentBlocksRequest
fn build(self) -> ListDocumentBlocksRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 DocumentService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<ListDocumentBlocksRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 DocumentService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<ListDocumentBlocksRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Source§fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 DocumentService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<ListDocumentBlocksRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 DocumentService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<ListDocumentBlocksRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Auto Trait Implementations§
impl Freeze for ListDocumentBlocksRequest
impl RefUnwindSafe for ListDocumentBlocksRequest
impl Send for ListDocumentBlocksRequest
impl Sync for ListDocumentBlocksRequest
impl Unpin for ListDocumentBlocksRequest
impl UnwindSafe for ListDocumentBlocksRequest
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