pub struct HTTPResponseBackendUpdate {
pub id: String,
pub description: Option<String>,
pub metadata: Option<String>,
pub body: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub status_code: Option<i32>,
}
Fields§
§id: String
§description: Option<String>
human-readable description of this backend. Optional
metadata: Option<String>
arbitrary user-defined machine-readable data of this backend. Optional
body: Option<String>
body to return as fixed content
headers: Option<HashMap<String, String>>
headers to return
status_code: Option<i32>
status code to return
Trait Implementations§
Source§impl Clone for HTTPResponseBackendUpdate
impl Clone for HTTPResponseBackendUpdate
Source§fn clone(&self) -> HTTPResponseBackendUpdate
fn clone(&self) -> HTTPResponseBackendUpdate
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 HTTPResponseBackendUpdate
impl Debug for HTTPResponseBackendUpdate
Source§impl Default for HTTPResponseBackendUpdate
impl Default for HTTPResponseBackendUpdate
Source§fn default() -> HTTPResponseBackendUpdate
fn default() -> HTTPResponseBackendUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HTTPResponseBackendUpdate
impl<'de> Deserialize<'de> for HTTPResponseBackendUpdate
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
Auto Trait Implementations§
impl Freeze for HTTPResponseBackendUpdate
impl RefUnwindSafe for HTTPResponseBackendUpdate
impl Send for HTTPResponseBackendUpdate
impl Sync for HTTPResponseBackendUpdate
impl Unpin for HTTPResponseBackendUpdate
impl UnwindSafe for HTTPResponseBackendUpdate
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