pub struct SolAccountWithValue {
pub name: String,
pub signer: Option<bool>,
pub writable: Option<bool>,
pub address: String,
}Fields§
§name: StringThe name of the account
signer: Option<bool>Indicates if the account needs to sign the instruction. If true a signature for this account must be provided
writable: Option<bool>Indicates if the account’s data can be changed by the instruction.
address: StringThe address of the account
Implementations§
Source§impl SolAccountWithValue
impl SolAccountWithValue
pub fn new(name: String, address: String) -> SolAccountWithValue
Trait Implementations§
Source§impl Clone for SolAccountWithValue
impl Clone for SolAccountWithValue
Source§fn clone(&self) -> SolAccountWithValue
fn clone(&self) -> SolAccountWithValue
Returns a duplicate 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 Debug for SolAccountWithValue
impl Debug for SolAccountWithValue
Source§impl Default for SolAccountWithValue
impl Default for SolAccountWithValue
Source§fn default() -> SolAccountWithValue
fn default() -> SolAccountWithValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SolAccountWithValue
impl<'de> Deserialize<'de> for SolAccountWithValue
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 SolAccountWithValue
impl PartialEq for SolAccountWithValue
Source§impl Serialize for SolAccountWithValue
impl Serialize for SolAccountWithValue
impl StructuralPartialEq for SolAccountWithValue
Auto Trait Implementations§
impl Freeze for SolAccountWithValue
impl RefUnwindSafe for SolAccountWithValue
impl Send for SolAccountWithValue
impl Sync for SolAccountWithValue
impl Unpin for SolAccountWithValue
impl UnwindSafe for SolAccountWithValue
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