pub struct Rendered {
pub content_type: &'static str,
pub body: String,
pub text: String,
pub warnings: Vec<String>,
pub chunks: Option<Vec<String>>,
}Expand description
响应:内容类型、正文、警告。
Fields§
§content_type: &'static str§body: String§text: String纯文本响应:不分块时同 body;分块时是 front matter、用分隔线连起来的各块、汇总。
warnings: Vec<String>§chunks: Option<Vec<String>>分块时的各块(Accept: application/json 时返回数组)。
Trait Implementations§
Auto Trait Implementations§
impl Forget for Rendered
impl Freeze for Rendered
impl Move for Rendered
impl RefUnwindSafe for Rendered
impl Send for Rendered
impl Sync for Rendered
impl Unpin for Rendered
impl UnsafeUnpin for Rendered
impl UnwindSafe for Rendered
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