pub struct CreateBlockRequestBuilder { /* private fields */ }Expand description
创建块请求构建器
Implementations§
Source§impl CreateBlockRequestBuilder
impl CreateBlockRequestBuilder
pub fn document_id(self, document_id: impl Into<String>) -> Self
pub fn parent_id(self, parent_id: impl Into<String>) -> Self
pub fn index(self, index: i32) -> Self
pub fn blocks(self, blocks: Vec<BlockData>) -> Self
pub fn add_block(self, block: BlockData) -> Self
pub fn build(self) -> (String, CreateBlockRequest)
Source§impl CreateBlockRequestBuilder
impl CreateBlockRequestBuilder
Sourcepub async fn execute(
self,
service: &DocumentBlockService,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<CreateBlockRespData>>
pub async fn execute( self, service: &DocumentBlockService, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<CreateBlockRespData>>
执行请求
Sourcepub async fn execute_with_options(
self,
service: &DocumentBlockService,
option: RequestOption,
) -> SDKResult<BaseResponse<CreateBlockRespData>>
pub async fn execute_with_options( self, service: &DocumentBlockService, option: RequestOption, ) -> SDKResult<BaseResponse<CreateBlockRespData>>
执行请求(带选项)
Trait Implementations§
Source§impl Default for CreateBlockRequestBuilder
impl Default for CreateBlockRequestBuilder
Source§fn default() -> CreateBlockRequestBuilder
fn default() -> CreateBlockRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateBlockRequestBuilder
impl RefUnwindSafe for CreateBlockRequestBuilder
impl Send for CreateBlockRequestBuilder
impl Sync for CreateBlockRequestBuilder
impl Unpin for CreateBlockRequestBuilder
impl UnwindSafe for CreateBlockRequestBuilder
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