pub struct PullResponse {
pub operations: Vec<SyncOperation>,
pub new_cursor: u64,
pub has_more: bool,
}Expand description
Pull response from server.
Fields§
§operations: Vec<SyncOperation>Operations since cursor.
new_cursor: u64New cursor after these operations.
has_more: boolWhether there are more operations.
Implementations§
Source§impl PullResponse
impl PullResponse
Sourcepub fn new(
operations: Vec<SyncOperation>,
new_cursor: u64,
has_more: bool,
) -> Self
pub fn new( operations: Vec<SyncOperation>, new_cursor: u64, has_more: bool, ) -> Self
Creates a new pull response.
Sourcepub fn encode(&self) -> CodecResult<Vec<u8>>
pub fn encode(&self) -> CodecResult<Vec<u8>>
Encodes to CBOR.
Sourcepub fn decode(bytes: &[u8]) -> CodecResult<Self>
pub fn decode(bytes: &[u8]) -> CodecResult<Self>
Decodes from CBOR.
Trait Implementations§
Source§impl Clone for PullResponse
impl Clone for PullResponse
Source§fn clone(&self) -> PullResponse
fn clone(&self) -> PullResponse
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 moreAuto Trait Implementations§
impl Freeze for PullResponse
impl RefUnwindSafe for PullResponse
impl Send for PullResponse
impl Sync for PullResponse
impl Unpin for PullResponse
impl UnwindSafe for PullResponse
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