Struct adenosine_cli::XrpcClient
source · pub struct XrpcClient { /* private fields */ }Implementations
sourceimpl XrpcClient
impl XrpcClient
pub fn new(host: String, auth_token: Option<String>) -> Result<Self>
pub fn get(
&self,
nsid: &Nsid,
params: Option<HashMap<String, String>>
) -> Result<Option<Value>>
pub fn get_to_writer<W: Write>(
&self,
nsid: &Nsid,
params: Option<HashMap<String, String>>,
output: &mut W
) -> Result<u64>
pub fn post(
&self,
nsid: &Nsid,
params: Option<HashMap<String, String>>,
body: Option<Value>
) -> Result<Option<Value>>
pub fn post_cbor_from_reader<R: Read>(
&self,
nsid: &Nsid,
params: Option<HashMap<String, String>>,
input: &mut R
) -> Result<Option<Value>>
Auto Trait Implementations
impl !RefUnwindSafe for XrpcClient
impl Send for XrpcClient
impl Sync for XrpcClient
impl Unpin for XrpcClient
impl !UnwindSafe for XrpcClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more