Struct izihawa_ipfs_api_prelude::request::DagPut
source · pub struct DagPut<'a> {
pub store_codec: Option<DagCodec>,
pub input_codec: Option<DagCodec>,
pub pin: Option<bool>,
pub hash: Option<&'a str>,
}
Fields
store_codec: Option<DagCodec>
Codec that the stored object will be encoded with. Default: dag-cbor. Required: no.
input_codec: Option<DagCodec>
Codec that the input object is encoded in. Default: dag-json. Required: no.
pin: Option<bool>
Pin this object when adding. Required: no.
hash: Option<&'a str>
Hash function to use. Default: sha2-256. Required: no.
Trait Implementations
sourceimpl ApiRequest for DagPut<'_>
impl ApiRequest for DagPut<'_>
Auto Trait Implementations
impl<'a> RefUnwindSafe for DagPut<'a>
impl<'a> Send for DagPut<'a>
impl<'a> Sync for DagPut<'a>
impl<'a> Unpin for DagPut<'a>
impl<'a> UnwindSafe for DagPut<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more