pub struct FindingsResponse {
pub embedded: FindingsEmbedded,
pub links: FindingsLinks,
pub page: PageInfo,
}Expand description
Complete findings API response
Fields§
§embedded: FindingsEmbeddedEmbedded findings data
links: FindingsLinksHAL navigation links
page: PageInfoPagination information
Implementations§
Source§impl FindingsResponse
impl FindingsResponse
Sourcepub fn findings(&self) -> &[RestFinding]
pub fn findings(&self) -> &[RestFinding]
Get the findings from this response
Sourcepub fn has_next_page(&self) -> bool
pub fn has_next_page(&self) -> bool
Check if there’s a next page available
Sourcepub fn current_page(&self) -> u32
pub fn current_page(&self) -> u32
Get current page number (0-based)
Sourcepub fn total_pages(&self) -> u32
pub fn total_pages(&self) -> u32
Get total number of pages
Sourcepub fn is_last_page(&self) -> bool
pub fn is_last_page(&self) -> bool
Check if this is the last page
Sourcepub fn total_elements(&self) -> u32
pub fn total_elements(&self) -> u32
Get total number of findings across all pages
Trait Implementations§
Source§impl Clone for FindingsResponse
impl Clone for FindingsResponse
Source§fn clone(&self) -> FindingsResponse
fn clone(&self) -> FindingsResponse
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 FindingsResponse
impl Debug for FindingsResponse
Source§impl<'de> Deserialize<'de> for FindingsResponse
impl<'de> Deserialize<'de> for FindingsResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FindingsResponse
impl RefUnwindSafe for FindingsResponse
impl Send for FindingsResponse
impl Sync for FindingsResponse
impl Unpin for FindingsResponse
impl UnwindSafe for FindingsResponse
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