pub struct DagGet<'a> {
pub path: &'a str,
pub codec: Option<DagCodec>,
}
Fields§
§path: &'a str
§codec: Option<DagCodec>
Format that the object will be encoded as. Default: dag-json. Required: no.
Implementations§
Trait Implementations§
Source§impl<'a> ApiRequest for DagGet<'a>
impl<'a> ApiRequest for DagGet<'a>
Source§impl<'a> Serialize for DagGet<'a>
impl<'a> Serialize for DagGet<'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 DagGet<'a>
impl<'a> RefUnwindSafe for DagGet<'a>
impl<'a> Send for DagGet<'a>
impl<'a> Sync for DagGet<'a>
impl<'a> Unpin for DagGet<'a>
impl<'a> UnwindSafe for DagGet<'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