pub struct AmbiguousAccountError {
pub error: String,
pub code: Option<String>,
pub accounts: Option<Vec<AccountChoice>>,
}Expand description
AmbiguousAccountError : Returned when the caller’s request matches more than one connected account and no accountId query param disambiguates which one to target. The accounts array enumerates the candidates so the client can prompt the user to pick.
Fields§
§error: StringHuman-readable error message.
code: Option<String>Machine-readable error code. Stable across releases for the canonical codes (ambiguous_account, no_notes_provider, note_not_found). Absent for generic errors.
accounts: Option<Vec<AccountChoice>>Implementations§
Source§impl AmbiguousAccountError
impl AmbiguousAccountError
Sourcepub fn new(error: String) -> AmbiguousAccountError
pub fn new(error: String) -> AmbiguousAccountError
Returned when the caller’s request matches more than one connected account and no accountId query param disambiguates which one to target. The accounts array enumerates the candidates so the client can prompt the user to pick.
Trait Implementations§
Source§impl Clone for AmbiguousAccountError
impl Clone for AmbiguousAccountError
Source§fn clone(&self) -> AmbiguousAccountError
fn clone(&self) -> AmbiguousAccountError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AmbiguousAccountError
impl Debug for AmbiguousAccountError
Source§impl Default for AmbiguousAccountError
impl Default for AmbiguousAccountError
Source§fn default() -> AmbiguousAccountError
fn default() -> AmbiguousAccountError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AmbiguousAccountError
impl<'de> Deserialize<'de> for AmbiguousAccountError
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 PartialEq for AmbiguousAccountError
impl PartialEq for AmbiguousAccountError
Source§fn eq(&self, other: &AmbiguousAccountError) -> bool
fn eq(&self, other: &AmbiguousAccountError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AmbiguousAccountError
impl Serialize for AmbiguousAccountError
impl StructuralPartialEq for AmbiguousAccountError
Auto Trait Implementations§
impl Freeze for AmbiguousAccountError
impl RefUnwindSafe for AmbiguousAccountError
impl Send for AmbiguousAccountError
impl Sync for AmbiguousAccountError
impl Unpin for AmbiguousAccountError
impl UnsafeUnpin for AmbiguousAccountError
impl UnwindSafe for AmbiguousAccountError
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