pub struct DocumentBlockService { /* private fields */ }Expand description
文档块服务
Implementations§
Source§impl DocumentBlockService
impl DocumentBlockService
pub fn new(config: Config) -> Self
Sourcepub async fn create(
&self,
document_id: impl Into<String>,
request: CreateBlockRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<CreateBlockRespData>>
pub async fn create( &self, document_id: impl Into<String>, request: CreateBlockRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<CreateBlockRespData>>
创建块
该接口用于在文档中创建一个新的块。
https://open.feishu.cn/document/server-docs/docs/docs/docx-v1/document-block/create
Sourcepub async fn get(
&self,
document_id: impl Into<String>,
block_id: impl Into<String>,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<GetBlockRespData>>
pub async fn get( &self, document_id: impl Into<String>, block_id: impl Into<String>, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<GetBlockRespData>>
获取块的内容
该接口用于获取块的详细内容。
https://open.feishu.cn/document/server-docs/docs/docs/docx-v1/document-block/get
Sourcepub async fn patch(
&self,
document_id: impl Into<String>,
block_id: impl Into<String>,
request: PatchBlockRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<PatchBlockRespData>>
pub async fn patch( &self, document_id: impl Into<String>, block_id: impl Into<String>, request: PatchBlockRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<PatchBlockRespData>>
Sourcepub async fn batch_update(
&self,
document_id: impl Into<String>,
request: BatchUpdateBlockRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<BatchUpdateBlockRespData>>
pub async fn batch_update( &self, document_id: impl Into<String>, request: BatchUpdateBlockRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<BatchUpdateBlockRespData>>
批量更新块的内容
该接口用于批量更新多个块的内容。
https://open.feishu.cn/document/server-docs/docs/docs/docx-v1/document-block/batch_update
Sourcepub async fn batch_delete(
&self,
document_id: impl Into<String>,
request: BatchDeleteBlockRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<BatchDeleteBlockRespData>>
pub async fn batch_delete( &self, document_id: impl Into<String>, request: BatchDeleteBlockRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<BatchDeleteBlockRespData>>
Sourcepub async fn list_children(
&self,
document_id: impl Into<String>,
block_id: impl Into<String>,
request: ListChildrenRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<ListChildrenRespData>>
pub async fn list_children( &self, document_id: impl Into<String>, block_id: impl Into<String>, request: ListChildrenRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<ListChildrenRespData>>
获取所有子块
该接口用于获取指定块的所有子块。
https://open.feishu.cn/document/server-docs/docs/docs/docx-v1/document-block/get-2
Auto Trait Implementations§
impl Freeze for DocumentBlockService
impl !RefUnwindSafe for DocumentBlockService
impl Send for DocumentBlockService
impl Sync for DocumentBlockService
impl Unpin for DocumentBlockService
impl !UnwindSafe for DocumentBlockService
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