pub struct UploadOptions {
pub act: Option<bool>,
pub act_history_address: Option<Reference>,
pub pin: Option<bool>,
pub encrypt: Option<bool>,
pub tag: u32,
pub deferred: Option<bool>,
}Expand description
Base set of options accepted by every upload endpoint. Mirrors
bee-js / bee-go UploadOptions.
Fields§
§act: Option<bool>When Some(true), instruct Bee to wrap the upload in an Access
Control Trie (ACT). The history root is returned via
Swarm-Act-History-Address.
act_history_address: Option<Reference>Existing ACT history root for re-upload under the same access policy.
pin: Option<bool>Pin the uploaded data on the local Bee node.
encrypt: Option<bool>Encrypt chunks; the returned reference is 64 bytes (CAC || encryption key).
tag: u32Existing tag UID to attach for sync tracking. 0 omits the
header (matching bee-go’s uint32(0) zero-value semantics).
deferred: Option<bool>Toggle “Bee waits for full sync” (Some(false)) vs
“Bee accepts and syncs in background” (Some(true), the Bee
default).
Trait Implementations§
Source§impl Clone for UploadOptions
impl Clone for UploadOptions
Source§fn clone(&self) -> UploadOptions
fn clone(&self) -> UploadOptions
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 UploadOptions
impl Debug for UploadOptions
Source§impl Default for UploadOptions
impl Default for UploadOptions
Source§fn default() -> UploadOptions
fn default() -> UploadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UploadOptions
impl RefUnwindSafe for UploadOptions
impl Send for UploadOptions
impl Sync for UploadOptions
impl Unpin for UploadOptions
impl UnsafeUnpin for UploadOptions
impl UnwindSafe for UploadOptions
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