pub struct RequestCrawl<'a> {
pub hostname: CowStr<'a>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Fields§
§hostname: CowStr<'a>Hostname of the current service (eg, PDS) that is requesting to be crawled.
extra_data: BTreeMap<SmolStr, Data<'a>>Implementations§
Source§impl<'a> RequestCrawl<'a>
impl<'a> RequestCrawl<'a>
Sourcepub fn new() -> RequestCrawlBuilder<'a>
pub fn new() -> RequestCrawlBuilder<'a>
Create an instance of RequestCrawl using the builder syntax
Trait Implementations§
Source§impl<'a> Clone for RequestCrawl<'a>
impl<'a> Clone for RequestCrawl<'a>
Source§fn clone(&self) -> RequestCrawl<'a>
fn clone(&self) -> RequestCrawl<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RequestCrawl<'a>
impl<'a> Debug for RequestCrawl<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for RequestCrawl<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RequestCrawl<'a>
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 IntoStatic for RequestCrawl<'_>
impl IntoStatic for RequestCrawl<'_>
Source§type Output = RequestCrawl<'static>
type Output = RequestCrawl<'static>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<'a> PartialEq for RequestCrawl<'a>
impl<'a> PartialEq for RequestCrawl<'a>
Source§impl<'a> Serialize for RequestCrawl<'a>
impl<'a> Serialize for RequestCrawl<'a>
Source§impl XrpcRequest for RequestCrawl<'_>
impl XrpcRequest for RequestCrawl<'_>
Source§const METHOD: XrpcMethod
const METHOD: XrpcMethod
XRPC method (query/GET or procedure/POST)
Source§const OUTPUT_ENCODING: &'static str = "application/json"
const OUTPUT_ENCODING: &'static str = "application/json"
Output encoding (MIME type)
Source§type Err<'de> = RequestCrawlError<'de>
type Err<'de> = RequestCrawlError<'de>
Error type for this request
Source§fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
Encode the request body for procedures. Read more
impl<'a> Eq for RequestCrawl<'a>
impl<'a> StructuralPartialEq for RequestCrawl<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestCrawl<'a>
impl<'a> RefUnwindSafe for RequestCrawl<'a>
impl<'a> Send for RequestCrawl<'a>
impl<'a> Sync for RequestCrawl<'a>
impl<'a> Unpin for RequestCrawl<'a>
impl<'a> UnwindSafe for RequestCrawl<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.