Struct ipfs_api_backend_hyper::request::DagPut [−][src]
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
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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> RefUnwindSafe for DagPut<'a>
impl<'a> UnwindSafe for DagPut<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more