pub struct TransitionBuilder { /* private fields */ }
Implementations§
Source§impl TransitionBuilder
impl TransitionBuilder
pub fn blank_transition( iface: Iface, schema: SubSchema, iimpl: IfaceImpl, ) -> Result<Self, BuilderError>
pub fn default_transition( iface: Iface, schema: SubSchema, iimpl: IfaceImpl, ) -> Result<Self, BuilderError>
pub fn named_transition( iface: Iface, schema: SubSchema, iimpl: IfaceImpl, transition_name: impl Into<TypeName>, ) -> Result<Self, BuilderError>
pub fn assignments_type(&self, name: &FieldName) -> Option<AssignmentType>
pub fn add_input(self, opout: Opout) -> Result<Self, BuilderError>
pub fn default_assignment(&self) -> Result<&FieldName, BuilderError>
pub fn add_global_state( self, name: impl Into<FieldName>, value: impl StrictSerialize, ) -> Result<Self, BuilderError>
pub fn add_fungible_state_default( self, seal: impl Into<BuilderSeal<GraphSeal>>, value: u64, ) -> Result<Self, BuilderError>
pub fn add_fungible_state( self, name: impl Into<FieldName>, seal: impl Into<BuilderSeal<GraphSeal>>, value: u64, ) -> Result<Self, BuilderError>
pub fn add_data_state( self, name: impl Into<FieldName>, seal: impl Into<BuilderSeal<GraphSeal>>, value: impl StrictSerialize, ) -> Result<Self, BuilderError>
pub fn add_raw_state( self, type_id: AssignmentType, seal: impl Into<BuilderSeal<GraphSeal>>, state: TypedState, ) -> Result<Self, BuilderError>
pub fn complete_transition( self, contract_id: ContractId, ) -> Result<Transition, BuilderError>
Trait Implementations§
Source§impl Clone for TransitionBuilder
impl Clone for TransitionBuilder
Source§fn clone(&self) -> TransitionBuilder
fn clone(&self) -> TransitionBuilder
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 moreAuto Trait Implementations§
impl Freeze for TransitionBuilder
impl RefUnwindSafe for TransitionBuilder
impl Send for TransitionBuilder
impl Sync for TransitionBuilder
impl Unpin for TransitionBuilder
impl UnwindSafe for TransitionBuilder
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