pub struct GetContentParams {
pub store_id: HexId,
pub retrieval_key: HexId,
pub root: Option<HexId>,
pub offset: Option<u64>,
pub mode: Option<String>,
pub redirect_depth: Option<u64>,
}Expand description
Params for dig.getContent — a verified
resource-window read.
Fields§
§store_id: HexIdThe CHIP-0035 singleton launcher id (64-hex).
retrieval_key: HexIdSHA-256(urn) — the only URN-derived value sent to a node (64-hex).
root: Option<HexId>The generation root (64-hex). Empty / "latest" / absent ⇒ resolve the
chain tip.
offset: Option<u64>The window start offset (default 0).
mode: Option<String>Retrieval mode: "speed" (default) or "privacy" (onion — target).
redirect_depth: Option<u64>The redirect budget already consumed (echoed from a -32008 redirect).
Trait Implementations§
Source§impl Clone for GetContentParams
impl Clone for GetContentParams
Source§fn clone(&self) -> GetContentParams
fn clone(&self) -> GetContentParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetContentParams
impl Debug for GetContentParams
Source§impl<'de> Deserialize<'de> for GetContentParams
impl<'de> Deserialize<'de> for GetContentParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetContentParams
impl PartialEq for GetContentParams
Source§impl Serialize for GetContentParams
impl Serialize for GetContentParams
impl StructuralPartialEq for GetContentParams
Auto Trait Implementations§
impl Freeze for GetContentParams
impl RefUnwindSafe for GetContentParams
impl Send for GetContentParams
impl Sync for GetContentParams
impl Unpin for GetContentParams
impl UnsafeUnpin for GetContentParams
impl UnwindSafe for GetContentParams
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