Skip to main content

SearchResult

Type Alias SearchResult 

Source
type SearchResult = Result<PostListResponse, ApiError>;
Expand description

搜索结果:成功的响应,或失败。

Aliased Type§

enum SearchResult {
    Ok(PostListResponse),
    Err(ApiError),
}

Variants§

§1.0.0

Ok(PostListResponse)

Contains the success value

§1.0.0

Err(ApiError)

Contains the error value