pub struct UploadResult {
pub reference: Reference,
pub tag_uid: Option<u32>,
pub history_address: Option<Reference>,
}Expand description
Standardized return shape for every upload endpoint. Mirrors
bee-js / bee-go UploadResult.
tag_uid is None when Bee did not return a Swarm-Tag header.
history_address is None when no ACT history was created.
Fields§
§reference: ReferenceReference returned by Bee in the JSON body.
tag_uid: Option<u32>Tag UID parsed from the Swarm-Tag response header.
history_address: Option<Reference>ACT history root parsed from Swarm-Act-History-Address.
Implementations§
Source§impl UploadResult
impl UploadResult
Trait Implementations§
Source§impl Clone for UploadResult
impl Clone for UploadResult
Source§fn clone(&self) -> UploadResult
fn clone(&self) -> UploadResult
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 UploadResult
impl Debug for UploadResult
Source§impl PartialEq for UploadResult
impl PartialEq for UploadResult
Source§fn eq(&self, other: &UploadResult) -> bool
fn eq(&self, other: &UploadResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UploadResult
impl StructuralPartialEq for UploadResult
Auto Trait Implementations§
impl Freeze for UploadResult
impl RefUnwindSafe for UploadResult
impl Send for UploadResult
impl Sync for UploadResult
impl Unpin for UploadResult
impl UnsafeUnpin for UploadResult
impl UnwindSafe for UploadResult
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