pub struct Pwnboard {
pub uri: String,
/* private fields */
}
Expand description
Struct for Pwnboard client
Allows for communicationi between application and API route
§Examples
use pwnboard_rs::Pwnboard
fn main() {
let pwn = Pwnboard::new("https://pwnboard.win").expect("Failed to create client");
}
Fields§
§uri: String
Implementations§
Source§impl Pwnboard
impl Pwnboard
Sourcepub fn new(uri: &str) -> Result<Pwnboard, Box<dyn Error>>
pub fn new(uri: &str) -> Result<Pwnboard, Box<dyn Error>>
Creates new Pwnboard client pointing to given URI
Sourcepub async fn boxaccess(
&self,
ip: &str,
application: &str,
ips: Option<&[&str]>,
access_type: Option<&str>,
message: Option<&str>,
) -> Result<Response, Box<dyn Error>>
pub async fn boxaccess( &self, ip: &str, application: &str, ips: Option<&[&str]>, access_type: Option<&str>, message: Option<&str>, ) -> Result<Response, Box<dyn Error>>
Indicates access to a box via given application
Auto Trait Implementations§
impl Freeze for Pwnboard
impl !RefUnwindSafe for Pwnboard
impl Send for Pwnboard
impl Sync for Pwnboard
impl Unpin for Pwnboard
impl !UnwindSafe for Pwnboard
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