pub struct PreCommitSectorParamsAPI {
pub seal_proof: RegisteredSealProof,
pub sector_number: SectorNumber,
pub sealed_cid: Cid,
pub seal_rand_epoch: ChainEpoch,
pub deal_ids: Vec<DealID>,
pub expiration: ChainEpoch,
pub replace_capacity: bool,
pub replace_sector_deadline: u64,
pub replace_sector_partition: u64,
pub replace_sector_number: SectorNumber,
}Fields§
§seal_proof: RegisteredSealProof§sector_number: SectorNumber§sealed_cid: CidCommR
seal_rand_epoch: ChainEpoch§deal_ids: Vec<DealID>§expiration: ChainEpoch§replace_capacity: boolWhether to replace a “committed capacity” no-deal sector (requires non-empty DealIDs)
replace_sector_deadline: u64The committed capacity sector to replace, and its deadline/partition location
replace_sector_partition: u64§replace_sector_number: SectorNumberImplementations§
Source§impl PreCommitSectorParamsAPI
impl PreCommitSectorParamsAPI
pub fn serialize<__S>(
__self: &PreCommitSectorParams,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> PreCommitSectorParamsAPI
impl<'de> PreCommitSectorParamsAPI
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<PreCommitSectorParams, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for PreCommitSectorParamsAPI
impl Clone for PreCommitSectorParamsAPI
Source§fn clone(&self) -> PreCommitSectorParamsAPI
fn clone(&self) -> PreCommitSectorParamsAPI
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 PreCommitSectorParamsAPI
impl Debug for PreCommitSectorParamsAPI
Source§impl PartialEq for PreCommitSectorParamsAPI
impl PartialEq for PreCommitSectorParamsAPI
impl StructuralPartialEq for PreCommitSectorParamsAPI
Auto Trait Implementations§
impl Freeze for PreCommitSectorParamsAPI
impl RefUnwindSafe for PreCommitSectorParamsAPI
impl Send for PreCommitSectorParamsAPI
impl Sync for PreCommitSectorParamsAPI
impl Unpin for PreCommitSectorParamsAPI
impl UnwindSafe for PreCommitSectorParamsAPI
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