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§
Source§impl ApiRequest for DagPut<'_>
impl ApiRequest for DagPut<'_>
Source§impl<'a> Serialize for DagPut<'a>
impl<'a> Serialize for DagPut<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for DagPut<'a>
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§
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