pub struct BinaryResponse {
pub file_name: String,
pub body: Vec<u8>,
}Expand description
二进制数据响应体
Fields§
§file_name: String§body: Vec<u8>Trait Implementations§
Source§impl ApiResponseTrait for BinaryResponse
impl ApiResponseTrait for BinaryResponse
Source§fn data_format() -> ResponseFormat
fn data_format() -> ResponseFormat
是否是标准数据格式, 既是用data包裹数据
fn from_binary(file_name: String, body: Vec<u8>) -> Option<Self>
Source§impl Debug for BinaryResponse
impl Debug for BinaryResponse
Source§impl<'de> Deserialize<'de> for BinaryResponse
impl<'de> Deserialize<'de> for BinaryResponse
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<FilesService, DownloadRequest, BinaryResponse> for DownloadRequestBuilder
impl ExecutableBuilder<FilesService, DownloadRequest, BinaryResponse> for DownloadRequestBuilder
Source§fn build(self) -> DownloadRequest
fn build(self) -> DownloadRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 FilesService,
) -> Pin<Box<dyn Future<Output = SDKResult<BinaryResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 FilesService,
) -> Pin<Box<dyn Future<Output = SDKResult<BinaryResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Source§fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FilesService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BinaryResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FilesService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BinaryResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Auto Trait Implementations§
impl Freeze for BinaryResponse
impl RefUnwindSafe for BinaryResponse
impl Send for BinaryResponse
impl Sync for BinaryResponse
impl Unpin for BinaryResponse
impl UnwindSafe for BinaryResponse
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