pub struct SummaryResponse {
pub sequence_number: Option<u32>,
pub products: Vec<ProductSummary>,
}
Expand description
Summary of all available products
Fields§
§sequence_number: Option<u32>
Sequence number from the BPSV document
products: Vec<ProductSummary>
List of available products
Implementations§
Source§impl SummaryResponse
impl SummaryResponse
Sourcepub fn get_product(&self, product: &str) -> Option<&ProductSummary>
pub fn get_product(&self, product: &str) -> Option<&ProductSummary>
Get summary for a specific product
Sourcepub fn product_codes(&self) -> Vec<&str>
pub fn product_codes(&self) -> Vec<&str>
Get all product codes
Trait Implementations§
Source§impl Clone for SummaryResponse
impl Clone for SummaryResponse
Source§fn clone(&self) -> SummaryResponse
fn clone(&self) -> SummaryResponse
Returns a duplicate 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 SummaryResponse
impl Debug for SummaryResponse
Source§impl PartialEq for SummaryResponse
impl PartialEq for SummaryResponse
Source§impl TypedResponse for SummaryResponse
impl TypedResponse for SummaryResponse
impl StructuralPartialEq for SummaryResponse
Auto Trait Implementations§
impl Freeze for SummaryResponse
impl RefUnwindSafe for SummaryResponse
impl Send for SummaryResponse
impl Sync for SummaryResponse
impl Unpin for SummaryResponse
impl UnwindSafe for SummaryResponse
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