pub struct PResponseParam {
pub status: String,
pub mimetype: PMimeType,
pub content: String,
}Fields§
§status: StringStatus of the response (i.e. HTTP/1.1 200 OK)
mimetype: PMimeTypeType of the content string
content: StringContent of the response (i.e. some html page)
Implementations§
Source§impl PResponseParam
impl PResponseParam
Sourcepub fn new(status: String, mimetype: PMimeType, content: &String) -> Self
pub fn new(status: String, mimetype: PMimeType, content: &String) -> Self
Constructor of the PResponseParam
§Parameters
status: status of the response (i.e. HTTP/1.1 200 OK)mimetype: type of the content stringcontent: content of the response (i.e. some html page)
Sourcepub fn set_status(&mut self, status: &String)
pub fn set_status(&mut self, status: &String)
Sourcepub fn set_content(&mut self, content: &String)
pub fn set_content(&mut self, content: &String)
Sourcepub fn set_mime_type(&mut self, mimetype: &PMimeType)
pub fn set_mime_type(&mut self, mimetype: &PMimeType)
Trait Implementations§
Source§impl Debug for PResponseParam
impl Debug for PResponseParam
Source§impl Default for PResponseParam
impl Default for PResponseParam
Source§fn default() -> PResponseParam
fn default() -> PResponseParam
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PResponseParam
impl RefUnwindSafe for PResponseParam
impl Send for PResponseParam
impl Sync for PResponseParam
impl Unpin for PResponseParam
impl UnsafeUnpin for PResponseParam
impl UnwindSafe for PResponseParam
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