pub struct CreateDocumentRequest {
pub title: String,
pub content: Option<String>,
pub folder_token: Option<String>,
}Expand description
创建文档请求参数
Fields§
§title: String文档标题
content: Option<String>文档内容,JSON格式的块内容
folder_token: Option<String>文件夹token
Implementations§
Source§impl CreateDocumentRequest
impl CreateDocumentRequest
pub fn builder() -> CreateDocumentRequestBuilder
pub fn new(title: impl Into<String>) -> Self
pub fn with_content(self, content: impl Into<String>) -> Self
pub fn with_folder_token(self, folder_token: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for CreateDocumentRequest
impl Clone for CreateDocumentRequest
Source§fn clone(&self) -> CreateDocumentRequest
fn clone(&self) -> CreateDocumentRequest
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 CreateDocumentRequest
impl Debug for CreateDocumentRequest
Source§impl Default for CreateDocumentRequest
impl Default for CreateDocumentRequest
Source§fn default() -> CreateDocumentRequest
fn default() -> CreateDocumentRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateDocumentRequest
impl<'de> Deserialize<'de> for CreateDocumentRequest
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, CreateDocumentRequest, BaseResponse<CreateDocumentRespData>> for CreateDocumentRequestBuilder
impl ExecutableBuilder<DocumentService, CreateDocumentRequest, BaseResponse<CreateDocumentRespData>> for CreateDocumentRequestBuilder
Source§fn build(self) -> CreateDocumentRequest
fn build(self) -> CreateDocumentRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 DocumentService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<CreateDocumentRespData>>> + 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<CreateDocumentRespData>>> + 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<CreateDocumentRespData>>> + 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<CreateDocumentRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Auto Trait Implementations§
impl Freeze for CreateDocumentRequest
impl RefUnwindSafe for CreateDocumentRequest
impl Send for CreateDocumentRequest
impl Sync for CreateDocumentRequest
impl Unpin for CreateDocumentRequest
impl UnwindSafe for CreateDocumentRequest
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