Struct fe2o3_amqp_management::operations::entity::CreateResponse
source · pub struct CreateResponse {
pub entity_attributes: OrderedMap<String, Value>,
}
Expand description
If the request was successful then the statusCode MUST be 201 (Created) and the body of the message MUST consist of an amqp-value section that contains a map containing the actual attributes of the entity created. These MAY differ from those requested in two ways:
• Default values may be returned for values not specified
• Specific/concrete values may be returned for generic/base values specified
• The value associated with an attribute may have been converted into the correct amqp type
(e.g. the string “2” into the integer value 2) A map containing attributes that are not applicable for the entity being created, or invalid values for a given attribute, MUST result in a failure response with a statusCode of 400 (Bad Request).
Fields§
§entity_attributes: OrderedMap<String, Value>
The body of Create response.
Trait Implementations§
source§impl Clone for CreateResponse
impl Clone for CreateResponse
source§fn clone(&self) -> CreateResponse
fn clone(&self) -> CreateResponse
Returns a copy 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 CreateResponse
impl Debug for CreateResponse
source§impl Hash for CreateResponse
impl Hash for CreateResponse
source§impl Ord for CreateResponse
impl Ord for CreateResponse
source§fn cmp(&self, other: &CreateResponse) -> Ordering
fn cmp(&self, other: &CreateResponse) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CreateResponse
impl PartialEq for CreateResponse
source§fn eq(&self, other: &CreateResponse) -> bool
fn eq(&self, other: &CreateResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CreateResponse
impl PartialOrd for CreateResponse
source§fn partial_cmp(&self, other: &CreateResponse) -> Option<Ordering>
fn partial_cmp(&self, other: &CreateResponse) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Response for CreateResponse
impl Response for CreateResponse
source§const STATUS_CODE: u16 = 201u16
const STATUS_CODE: u16 = 201u16
The status code of the response.
source§fn decode_message(message: Message<Self::Body>) -> Result<Self, Self::Error>
fn decode_message(message: Message<Self::Body>) -> Result<Self, Self::Error>
Decodes the response from the message. Read more
source§fn verify_status_code(
message: &mut Message<Self::Body>
) -> Result<StatusCode, Self::Error>
fn verify_status_code( message: &mut Message<Self::Body> ) -> Result<StatusCode, Self::Error>
Checks the status code and description of the response and returns
None
if status code is
not found or returns Some(Err(error))
if the status code is not the expected one. Read moreimpl Eq for CreateResponse
impl StructuralPartialEq for CreateResponse
Auto Trait Implementations§
impl RefUnwindSafe for CreateResponse
impl Send for CreateResponse
impl Sync for CreateResponse
impl Unpin for CreateResponse
impl UnwindSafe for CreateResponse
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.