pub enum UpdateRequest<'a> {
Name {
value: Cow<'a, str>,
type: Cow<'a, str>,
locales: Option<Cow<'a, str>>,
body: OrderedMap<String, Value>,
},
Identity {
value: Cow<'a, str>,
type: Cow<'a, str>,
locales: Option<Cow<'a, str>>,
body: OrderedMap<String, Value>,
},
}
Expand description
Update a Manageable Entity.
§Body:
The body MUST consist of an amqp-value section containing a map. The map consists of key-value pairs where the key represents the name of an attribute of the entity and the value represents the initial value it SHOULD take. The absence of an attribute name implies that the entity should retain its existing value.
If the map contains a key-value pair where the value is null then the updated entity should have no value for that attribute, removing any previous value.
In the case where the supplied map contains multiple attributes, then the update MUST be treated as a single, atomic operation so if any of the changes cannot be applied, none of the attributes in the map should be updated and this MUST result in a failure response.
Where the type of the attribute value provided is not as required, type conversion as per the rules in 3.3.1.1 MUST be provided.
Variants§
Name
Fields
The name of the Manageable Entity to be managed. This is case-sensitive.
Identity
Fields
The identity of the Manageable Entity to be managed. This is case-sensitive.
Implementations§
Trait Implementations§
source§impl<'a> Clone for UpdateRequest<'a>
impl<'a> Clone for UpdateRequest<'a>
source§fn clone(&self) -> UpdateRequest<'a>
fn clone(&self) -> UpdateRequest<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'a> Debug for UpdateRequest<'a>
impl<'a> Debug for UpdateRequest<'a>
source§impl<'a> Hash for UpdateRequest<'a>
impl<'a> Hash for UpdateRequest<'a>
source§impl<'a> Ord for UpdateRequest<'a>
impl<'a> Ord for UpdateRequest<'a>
source§fn cmp(&self, other: &UpdateRequest<'a>) -> Ordering
fn cmp(&self, other: &UpdateRequest<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl<'a> PartialEq for UpdateRequest<'a>
impl<'a> PartialEq for UpdateRequest<'a>
source§fn eq(&self, other: &UpdateRequest<'a>) -> bool
fn eq(&self, other: &UpdateRequest<'a>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for UpdateRequest<'a>
impl<'a> PartialOrd for UpdateRequest<'a>
source§fn partial_cmp(&self, other: &UpdateRequest<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &UpdateRequest<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Request for UpdateRequest<'a>
impl<'a> Request for UpdateRequest<'a>
§type Response = UpdateResponse
type Response = UpdateResponse
source§fn manageable_entity_type(&mut self) -> Option<String>
fn manageable_entity_type(&mut self) -> Option<String>
source§fn encode_application_properties(&mut self) -> Option<ApplicationProperties>
fn encode_application_properties(&mut self) -> Option<ApplicationProperties>
source§fn encode_body(self) -> Self::Body
fn encode_body(self) -> Self::Body
source§fn encode_header(&mut self) -> Option<Header>
fn encode_header(&mut self) -> Option<Header>
source§fn encode_delivery_annotations(&mut self) -> Option<DeliveryAnnotations>
fn encode_delivery_annotations(&mut self) -> Option<DeliveryAnnotations>
source§fn encode_message_annotations(&mut self) -> Option<MessageAnnotations>
fn encode_message_annotations(&mut self) -> Option<MessageAnnotations>
source§fn encode_properties(&mut self) -> Option<Properties>
fn encode_properties(&mut self) -> Option<Properties>
source§fn into_message(self) -> Message<Self::Body>
fn into_message(self) -> Message<Self::Body>
impl<'a> Eq for UpdateRequest<'a>
impl<'a> StructuralPartialEq for UpdateRequest<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for UpdateRequest<'a>
impl<'a> Send for UpdateRequest<'a>
impl<'a> Sync for UpdateRequest<'a>
impl<'a> Unpin for UpdateRequest<'a>
impl<'a> UnwindSafe for UpdateRequest<'a>
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
§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
§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
key
and return true
if they are equal.