Struct sep2_common::packages::response::ResponseList
source · pub struct ResponseList<T: SEResponse + Ord> {
pub response: Vec<T>,
pub all: Uint32,
pub results: Uint32,
pub href: Option<String>,
}
Available on crate feature
response
only.Fields§
§response: Vec<T>
§all: Uint32
The number specifying “all” of the items in the list. Required on a response to a GET, ignored otherwise.
results: Uint32
Indicates the number of items in this page of results.
href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl<T: Clone + SEResponse + Ord> Clone for ResponseList<T>
impl<T: Clone + SEResponse + Ord> Clone for ResponseList<T>
source§fn clone(&self) -> ResponseList<T>
fn clone(&self) -> ResponseList<T>
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<T: Debug + SEResponse + Ord> Debug for ResponseList<T>
impl<T: Debug + SEResponse + Ord> Debug for ResponseList<T>
source§impl<T: Default + SEResponse + Ord> Default for ResponseList<T>
impl<T: Default + SEResponse + Ord> Default for ResponseList<T>
source§fn default() -> ResponseList<T>
fn default() -> ResponseList<T>
Returns the “default value” for a type. Read more
source§impl<T: PartialEq + SEResponse + Ord> PartialEq<ResponseList<T>> for ResponseList<T>
impl<T: PartialEq + SEResponse + Ord> PartialEq<ResponseList<T>> for ResponseList<T>
source§fn eq(&self, other: &ResponseList<T>) -> bool
fn eq(&self, other: &ResponseList<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SEResponse + Ord> SEList for ResponseList<T>
impl<T: SEResponse + Ord> SEList for ResponseList<T>
type Inner = T
fn all(&self) -> Uint32
fn all_mut(&mut self) -> &mut Uint32
fn results(&self) -> Uint32
fn results_mut(&mut self) -> &mut Uint32
fn list_as_slice(&self) -> &[Self::Inner]
fn list_mut(&mut self) -> &mut Vec<Self::Inner>
source§impl<T: SEResponse + Ord> SEResource for ResponseList<T>
impl<T: SEResponse + Ord> SEResource for ResponseList<T>
source§impl<T: SEResponse + Ord> Validate for ResponseList<T>
impl<T: SEResponse + Ord> Validate for ResponseList<T>
source§impl<T: SEResponse + Ord> YaDeserialize for ResponseList<T>
impl<T: SEResponse + Ord> YaDeserialize for ResponseList<T>
source§impl<T: SEResponse + Ord> YaSerialize for ResponseList<T>
impl<T: SEResponse + Ord> YaSerialize for ResponseList<T>
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl<T: Eq + SEResponse + Ord> Eq for ResponseList<T>
impl<T: SEResponse + Ord> StructuralEq for ResponseList<T>
impl<T: SEResponse + Ord> StructuralPartialEq for ResponseList<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ResponseList<T>
impl<T> Send for ResponseList<T>
impl<T> Sync for ResponseList<T>
impl<T> Unpin for ResponseList<T>where T: Unpin,
impl<T> UnwindSafe for ResponseList<T>where T: UnwindSafe,
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