Struct fil_actor_datacap::State
source · [−]pub struct State {
pub governor: Address,
pub token: TokenState,
}Fields
governor: Addresstoken: TokenStateImplementations
sourceimpl State
impl State
pub fn new<BS: Blockstore>(
store: &BS,
governor: Address
) -> Result<State, ActorError>
pub fn balance<BS: Blockstore>(
&self,
bs: &BS,
owner: ActorID
) -> Result<TokenAmount, ActorError>
Trait Implementations
sourceimpl Cbor for State
impl Cbor for State
sourceimpl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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