Enum bdk::blockchain::rpc::Auth
source · pub enum Auth {
None,
UserPass {
username: String,
password: String,
},
Cookie {
file: PathBuf,
},
}
Available on crate feature
rpc
only.Expand description
This struct is equivalent to bitcoincore_rpc::Auth but it implements serde::Serialize To be removed once upstream equivalent is implementing Serialize (json serialization format should be the same), see rust-bitcoincore-rpc/pull/181
Variants§
None
None authentication
UserPass
Authentication with username and password, usually Auth::Cookie should be preferred
Cookie
Authentication with a cookie file
Trait Implementations§
source§impl<'de> Deserialize<'de> for Auth
impl<'de> Deserialize<'de> for Auth
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 Ord for Auth
impl Ord for Auth
source§impl PartialEq for Auth
impl PartialEq for Auth
source§impl PartialOrd for Auth
impl PartialOrd for Auth
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Auth
impl StructuralEq for Auth
impl StructuralPartialEq for Auth
Auto Trait Implementations§
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnwindSafe for Auth
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