pub struct BlockListResponse {
pub blocks: Vec<Block>,
pub total: i32,
}Expand description
BlockListResponse : Single-account list response for GET /v1/notes/{id}/blocks. Unlike GET /v1/notes, block listing always targets one account so it does not fan out — total is the count for the current page slice.
Fields§
§blocks: Vec<Block>§total: i32Implementations§
Trait Implementations§
Source§impl Clone for BlockListResponse
impl Clone for BlockListResponse
Source§fn clone(&self) -> BlockListResponse
fn clone(&self) -> BlockListResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BlockListResponse
impl Debug for BlockListResponse
Source§impl Default for BlockListResponse
impl Default for BlockListResponse
Source§fn default() -> BlockListResponse
fn default() -> BlockListResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockListResponse
impl<'de> Deserialize<'de> for BlockListResponse
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
Source§impl PartialEq for BlockListResponse
impl PartialEq for BlockListResponse
Source§fn eq(&self, other: &BlockListResponse) -> bool
fn eq(&self, other: &BlockListResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BlockListResponse
impl Serialize for BlockListResponse
impl StructuralPartialEq for BlockListResponse
Auto Trait Implementations§
impl Freeze for BlockListResponse
impl RefUnwindSafe for BlockListResponse
impl Send for BlockListResponse
impl Sync for BlockListResponse
impl Unpin for BlockListResponse
impl UnsafeUnpin for BlockListResponse
impl UnwindSafe for BlockListResponse
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