[−][src]Struct ipfs_api::request::Add
Fields
trickle: Option<bool>Use trickle-dag format for dag generation.
only_hash: Option<bool>Only chunk and hash - do not write to disk.
wrap_with_directory: Option<bool>Wrap files with a directory object.
chunker: Option<&'a str>Chunking algorithm, size-[bytes], rabin-[min]-[avg]-[max] or buzhash.
pin: Option<bool>Pin this object when adding. Defaults to true.
raw_leaves: Option<bool>Use raw blocks for leaf nodes. (experimental).
cid_version: Option<u32>CID version. Defaults to 0 unless an option that depends on CIDv1 is passed. (experimental).
hash: Option<&'a str>Hash function to use. Implies CIDv1 if not sha2-256. (experimental). Default:
sha2-256.
inline: Option<bool>Inline small blocks into CIDs. (experimental).
inline_limit: Option<u32>Maximum block size to inline. (experimental). Default: 32.
Implementations
impl<'a> Add<'a>[src]
pub fn builder() -> AddBuilder<'a, ((), (), (), (), (), (), (), (), (), ())>[src]
Create a builder for building Add.
On the builder, call .trickle(...)(optional), .only_hash(...)(optional), .wrap_with_directory(...)(optional), .chunker(...)(optional), .pin(...)(optional), .raw_leaves(...)(optional), .cid_version(...)(optional), .hash(...)(optional), .inline(...)(optional), .inline_limit(...)(optional) to set the values of the fields (they accept Into values).
Finally, call .build() to create the instance of Add.
Trait Implementations
impl<'a> ApiRequest for Add<'a>[src]
impl<'a> Default for Add<'a>[src]
impl<'a> Serialize for Add<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Add<'a>[src]
impl<'a> Send for Add<'a>[src]
impl<'a> Sync for Add<'a>[src]
impl<'a> Unpin for Add<'a>[src]
impl<'a> UnwindSafe for Add<'a>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,