Struct fe2o3_amqp_management::operations::node::QueryResponse
source · pub struct QueryResponse {
pub count: u32,
pub attribute_names: Vec<String>,
pub results: Vec<Vec<Value>>,
}
Expand description
Response to a Query request.
Fields§
§count: u32
Specifies the number of entries from the result set being returned. Note that the value of count MUST be the same as number of elements in the list value associated with the results key in the body of the response message.
attribute_names: Vec<String>
Body
A list of strings where each element represents an attribute name. If the attributeNames passed in the body of the request contained a non-empty list then this value MUST consist of the exact same sequence of strings. If the body of the request did not contain an attributeNames entry then this value MUST contain the union of all attribute names for all Manageable Entity Types that match the query.
results: Vec<Vec<Value>>
Body
This value provides the portion of the result set being requested (as controlled by offset and count). Each element MUST provide the list of attribute values for a single Manageable Entity where the values are positionally-correlated with the names in the attributeNames entry. In the case where an attribute name is not applicable for a particular Manageable Entity then the corresponding value should be null.
If the result set is empty then this value MUST be a list of zero elements.
Trait Implementations§
source§impl Clone for QueryResponse
impl Clone for QueryResponse
source§fn clone(&self) -> QueryResponse
fn clone(&self) -> QueryResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryResponse
impl Debug for QueryResponse
source§impl Hash for QueryResponse
impl Hash for QueryResponse
source§impl Ord for QueryResponse
impl Ord for QueryResponse
source§fn cmp(&self, other: &QueryResponse) -> Ordering
fn cmp(&self, other: &QueryResponse) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for QueryResponse
impl PartialEq for QueryResponse
source§fn eq(&self, other: &QueryResponse) -> bool
fn eq(&self, other: &QueryResponse) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for QueryResponse
impl PartialOrd for QueryResponse
source§fn partial_cmp(&self, other: &QueryResponse) -> Option<Ordering>
fn partial_cmp(&self, other: &QueryResponse) -> 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 Response for QueryResponse
impl Response for QueryResponse
source§const STATUS_CODE: u16 = 200u16
const STATUS_CODE: u16 = 200u16
source§fn decode_message(message: Message<Self::Body>) -> Result<Self, Self::Error>
fn decode_message(message: Message<Self::Body>) -> Result<Self, Self::Error>
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>
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 QueryResponse
impl StructuralPartialEq for QueryResponse
Auto Trait Implementations§
impl RefUnwindSafe for QueryResponse
impl Send for QueryResponse
impl Sync for QueryResponse
impl Unpin for QueryResponse
impl UnwindSafe for QueryResponse
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.