pub struct DiskPlan {
pub version: u8,
pub chain: Chain,
pub author: String,
pub return_script: String,
pub root_txid: String,
pub total_fee: u64,
pub maximum_fee: u64,
pub record_count: u32,
pub records_hash: String,
pub index_hash: String,
/* private fields */
}Fields§
§version: u8§chain: Chain§return_script: String§root_txid: String§total_fee: u64§maximum_fee: u64§record_count: u32§records_hash: String§index_hash: StringImplementations§
Source§impl DiskPlan
impl DiskPlan
pub const MAX_RECORDS: u32 = Geometry::MAX_NODES
pub fn prepare_multipart( node: &Node, author: &impl IdentitySigner, funder: &Account, reader: &mut impl Read, length: u64, profile: [u8; 8], limits: PlanLimits, directory: &Path, ) -> Result<Self, Error>
pub fn directory(&self) -> &Path
pub fn load(directory: &Path) -> Result<Self, Error>
pub fn id(&self) -> Result<String, Error>
pub fn funded_by(&self, funder: &Account) -> Result<bool, Error>
pub fn require_funder(&self, funder: &Account) -> Result<(), Error>
pub fn record(&self, index: u32) -> Result<PublicPlan, Error>
pub fn validate(&self) -> Result<(), Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiskPlan
impl<'de> Deserialize<'de> for DiskPlan
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
Auto Trait Implementations§
impl Freeze for DiskPlan
impl RefUnwindSafe for DiskPlan
impl Send for DiskPlan
impl Sync for DiskPlan
impl Unpin for DiskPlan
impl UnsafeUnpin for DiskPlan
impl UnwindSafe for DiskPlan
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