Struct ipfs_api::request::BlockPut [−][src]
pub struct BlockPut<'a> {
pub format: Option<&'a str>,
pub mhtype: Option<&'a str>,
pub mhlen: Option<u32>,
pub pin: Option<bool>,
}Fields
format: Option<&'a str>mhtype: Option<&'a str>mhlen: Option<u32>pin: Option<bool>Implementations
Create a builder for building BlockPut.
On the builder, call .format(...)(optional), .mhtype(...)(optional), .mhlen(...)(optional), .pin(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of BlockPut.
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 BlockPut<'a>
impl<'a> UnwindSafe for BlockPut<'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