Struct iroh_docs::rpc::proto::SetDownloadPolicyRequest
source · pub struct SetDownloadPolicyRequest {
pub doc_id: NamespaceId,
pub policy: DownloadPolicy,
}
Available on crate feature
rpc
only.Expand description
Set a download policy
Fields§
§doc_id: NamespaceId
The document id
policy: DownloadPolicy
Download policy
Trait Implementations§
source§impl Debug for SetDownloadPolicyRequest
impl Debug for SetDownloadPolicyRequest
source§impl<'de> Deserialize<'de> for SetDownloadPolicyRequest
impl<'de> Deserialize<'de> for SetDownloadPolicyRequest
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 From<SetDownloadPolicyRequest> for Request
impl From<SetDownloadPolicyRequest> for Request
source§fn from(value: SetDownloadPolicyRequest) -> Self
fn from(value: SetDownloadPolicyRequest) -> Self
Converts to this type from the input type.
source§impl RpcMsg<RpcService> for SetDownloadPolicyRequest
impl RpcMsg<RpcService> for SetDownloadPolicyRequest
§type Response = Result<SetDownloadPolicyResponse, Error>
type Response = Result<SetDownloadPolicyResponse, Error>
The type for the response Read more
source§impl Serialize for SetDownloadPolicyRequest
impl Serialize for SetDownloadPolicyRequest
source§impl<'a> TryFrom<&'a Request> for &'a SetDownloadPolicyRequest
impl<'a> TryFrom<&'a Request> for &'a SetDownloadPolicyRequest
Auto Trait Implementations§
impl Freeze for SetDownloadPolicyRequest
impl RefUnwindSafe for SetDownloadPolicyRequest
impl Send for SetDownloadPolicyRequest
impl Sync for SetDownloadPolicyRequest
impl Unpin for SetDownloadPolicyRequest
impl UnwindSafe for SetDownloadPolicyRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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