pub struct SgInfo {
pub script_version: ScriptVersion,
pub script_group: ScriptGroup,
pub script_hash: Byte32,
pub program_data_piece_id: DataPieceId,
}Expand description
Script group level derived information.
Fields§
§script_version: ScriptVersionCurrently executed script version
script_group: ScriptGroupCurrently executed script group
script_hash: Byte32Currently executed script hash
program_data_piece_id: DataPieceIdDataPieceId for the root program
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SgInfo
impl RefUnwindSafe for SgInfo
impl Send for SgInfo
impl Sync for SgInfo
impl Unpin for SgInfo
impl UnwindSafe for SgInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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