Struct abstract_std::manager::state::AccountInfo
source · pub struct AccountInfo<T: AddressLike = Addr> {
pub name: String,
pub governance_details: GovernanceDetails<T>,
pub chain_id: String,
pub description: Option<String>,
pub link: Option<String>,
}
Expand description
Abstract Account details.
Fields§
§name: String
§governance_details: GovernanceDetails<T>
§chain_id: String
§description: Option<String>
§link: Option<String>
Implementations§
source§impl AccountInfo<String>
impl AccountInfo<String>
sourcepub fn verify(
self,
deps: Deps<'_>,
version_control_addr: Addr
) -> Result<AccountInfo<Addr>, AbstractError>
pub fn verify( self, deps: Deps<'_>, version_control_addr: Addr ) -> Result<AccountInfo<Addr>, AbstractError>
Check an account’s info, verifying the gov details.
Trait Implementations§
source§impl<T: Clone + AddressLike> Clone for AccountInfo<T>
impl<T: Clone + AddressLike> Clone for AccountInfo<T>
source§fn clone(&self) -> AccountInfo<T>
fn clone(&self) -> AccountInfo<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug + AddressLike> Debug for AccountInfo<T>
impl<T: Debug + AddressLike> Debug for AccountInfo<T>
source§impl<'de, T> Deserialize<'de> for AccountInfo<T>where
T: Deserialize<'de> + AddressLike,
impl<'de, T> Deserialize<'de> for AccountInfo<T>where
T: Deserialize<'de> + AddressLike,
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 From<AccountInfo> for AccountInfo<String>
impl From<AccountInfo> for AccountInfo<String>
source§fn from(value: AccountInfo<Addr>) -> Self
fn from(value: AccountInfo<Addr>) -> Self
Converts to this type from the input type.
source§impl<T: AddressLike + JsonSchema> JsonSchema for AccountInfo<T>
impl<T: AddressLike + JsonSchema> JsonSchema for AccountInfo<T>
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl<T: PartialEq + AddressLike> PartialEq for AccountInfo<T>
impl<T: PartialEq + AddressLike> PartialEq for AccountInfo<T>
source§fn eq(&self, other: &AccountInfo<T>) -> bool
fn eq(&self, other: &AccountInfo<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for AccountInfo<T>where
T: Serialize + AddressLike,
impl<T> Serialize for AccountInfo<T>where
T: Serialize + AddressLike,
impl<T: AddressLike> StructuralPartialEq for AccountInfo<T>
Auto Trait Implementations§
impl<T> Freeze for AccountInfo<T>where
T: Freeze,
impl<T> RefUnwindSafe for AccountInfo<T>where
T: RefUnwindSafe,
impl<T> Send for AccountInfo<T>where
T: Send,
impl<T> Sync for AccountInfo<T>where
T: Sync,
impl<T> Unpin for AccountInfo<T>where
T: Unpin,
impl<T> UnwindSafe for AccountInfo<T>where
T: UnwindSafe,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more