pub struct Payload {
pub http_headers: Option<Vec<String>>,
pub http_operation: Option<String>,
pub json_body: Option<String>,
pub target_uri: Option<String>,
}
Expand description
The HTTP and JSON payload details for this Task.
Fields§
§http_headers: Option<Vec<String>>
An array of HTTP headers that this task includes.
http_operation: Option<String>
The HTTP operation to perform to execute this task.
json_body: Option<String>
The JSON payload to use in the execution of this task.
target_uri: Option<String>
The URI of the target for this task.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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 Metadata<'static> for Payload
impl Metadata<'static> for Payload
Source§const JSON_SCHEMA: &'static str = "Task.v1_7_1.json"
const JSON_SCHEMA: &'static str = "Task.v1_7_1.json"
Name of the json-schema file that describes the entity that implements this trait. Should
be only the file name, so that it can be resolved relative to the URL of the redfish
service, or the public Redfish schema index.
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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