pub struct PetScan { /* private fields */ }Implementations§
Source§impl PetScan
impl PetScan
Sourcepub fn parameters_mut(&mut self) -> &mut Vec<(String, String)>
pub fn parameters_mut(&mut self) -> &mut Vec<(String, String)>
Get the mutable parameters for the future PetScan query. You can override the parameters from the PSID this way.
Sourcepub fn pages(&self) -> &[PetScanPage]
pub fn pages(&self) -> &[PetScanPage]
Get the namespaces from the PetScan query.
pub async fn as_json(&self) -> Value
Trait Implementations§
Source§impl Tool for PetScan
impl Tool for PetScan
Source§fn run_blocking(&mut self) -> Result<(), ToolsError>
fn run_blocking(&mut self) -> Result<(), ToolsError>
Perform a blocking PetScan query.
Source§fn run<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), ToolsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), ToolsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the PetScan query asynchronously.
fn set_from_json(&mut self, json: Value) -> Result<(), ToolsError>
fn set_from_text(&mut self, _text: &str) -> Result<(), ToolsError>
fn generate_payload(&self) -> Value
fn generate_paramters(&self) -> Result<Vec<(String, String)>, ToolsError>
fn get_url(&self) -> String
impl StructuralPartialEq for PetScan
Auto Trait Implementations§
impl Freeze for PetScan
impl RefUnwindSafe for PetScan
impl Send for PetScan
impl Sync for PetScan
impl Unpin for PetScan
impl UnwindSafe for PetScan
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