Sigil documentation
ReferenceRust referencesigil-node

sigil-node · storage_market_durable

Source declarations, signatures and documentation for storage_market_durable.

Source: sigil/node/sigil-node/src/storage_market_durable.rs. SHA-256: 8fc26fa367e5859cf4e89035eb1f4830f5c349e8bd4b6e4eb8e0024ad83810b7.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

storage_market_durable::ArcStorageMarketStore

pub type ArcStorageMarketStore = Arc<DurableStorageMarketStore>;

Source line: 14.

storage_market_durable::StorageMarketEvent

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct StorageMarketEvent {
pub block_height: u64,
pub seq: u64,
pub topic: String,
pub actor_did: String,
pub provider_did: Option<String>,
pub request_id: Option<String>,
pub contract_id: Option<String>,
pub payload: serde_json::Value
}

Source line: 65.

storage_market_durable::StorageMarketBatchOp

#[derive(Debug, Clone)]
pub enum StorageMarketBatchOp {
    PutProvider(Arc<StorageProviderRecord>),
    PutRequest(Arc<StoragePinRequest>),
    IndexRequestOwner {
        owner_did: String,
        request_id: String,
    },
    PutContract(Arc<StoragePinContract>),
    IndexContractProvider {
        provider_did: String,
        contract_id: String,
    },
    IndexContractRequest {
        request_id: String,
        contract_id: String,
    },
    PutReceipt(Arc<StoragePinReceipt>),
    IndexReceiptContract {
        contract_id: String,
        receipt_id: String,
    },
    PutChallenge(Arc<StorageChallengeRecord>),
    IndexChallengeContract {
        contract_id: String,
        challenge_id: String,
    },
    AppendEvent(Arc<StorageMarketEvent>),
}

Source line: 77.

storage_market_durable::StorageMarketWriteBatch

#[derive(Debug, Default, Clone)]
pub struct StorageMarketWriteBatch {
pub ops: Vec<StorageMarketBatchOp>
}

Source line: 107.

storage_market_durable::StorageMarketWriteBatch::new

pub fn new() -> Self;

Source line: 112.

storage_market_durable::StorageMarketWriteBatch::push

pub fn push(&mut self, op: StorageMarketBatchOp);

Source line: 116.

storage_market_durable::StorageMarketWriteBatch::put_provider

pub fn put_provider(&mut self, record: StorageProviderRecord);

Source line: 120.

storage_market_durable::StorageMarketWriteBatch::put_request

pub fn put_request(&mut self, record: StoragePinRequest);

Source line: 124.

storage_market_durable::StorageMarketWriteBatch::put_contract

pub fn put_contract(&mut self, record: StoragePinContract);

Source line: 132.

storage_market_durable::StorageMarketWriteBatch::put_receipt

pub fn put_receipt(&mut self, record: StoragePinReceipt);

Source line: 144.

storage_market_durable::StorageMarketWriteBatch::put_challenge

pub fn put_challenge(&mut self, record: StorageChallengeRecord);

Source line: 152.

storage_market_durable::DurableStorageMarketStore

pub struct DurableStorageMarketStore {

}

Source line: 184.

storage_market_durable::DurableStorageMarketStore::open

pub fn open(path: &Path) -> Result<Self, NodeError>;

Source line: 190.

storage_market_durable::DurableStorageMarketStore::get_provider

pub fn get_provider(
        &self,
        provider_did: &str,
    ) -> Result<Option<StorageProviderRecord>, NodeError>;

Source line: 245.

storage_market_durable::DurableStorageMarketStore::list_providers

pub fn list_providers(&self) -> Result<Vec<StorageProviderRecord>, NodeError>;

Source line: 254.

storage_market_durable::DurableStorageMarketStore::get_request

pub fn get_request(&self, request_id: &str) -> Result<Option<StoragePinRequest>, NodeError>;

Source line: 263.

storage_market_durable::DurableStorageMarketStore::list_requests_by_owner

pub fn list_requests_by_owner(
        &self,
        owner_did: &str,
    ) -> Result<Vec<StoragePinRequest>, NodeError>;

Source line: 269.

storage_market_durable::DurableStorageMarketStore::get_contract

pub fn get_contract(&self, contract_id: &str) -> Result<Option<StoragePinContract>, NodeError>;

Source line: 286.

storage_market_durable::DurableStorageMarketStore::list_contracts_by_provider

pub fn list_contracts_by_provider(
        &self,
        provider_did: &str,
    ) -> Result<Vec<StoragePinContract>, NodeError>;

Source line: 292.

storage_market_durable::DurableStorageMarketStore::list_contracts_by_request

pub fn list_contracts_by_request(
        &self,
        request_id: &str,
    ) -> Result<Vec<StoragePinContract>, NodeError>;

Source line: 311.

storage_market_durable::DurableStorageMarketStore::get_receipt

pub fn get_receipt(&self, receipt_id: &str) -> Result<Option<StoragePinReceipt>, NodeError>;

Source line: 328.

storage_market_durable::DurableStorageMarketStore::list_receipts_by_contract

pub fn list_receipts_by_contract(
        &self,
        contract_id: &str,
    ) -> Result<Vec<StoragePinReceipt>, NodeError>;

Source line: 334.

storage_market_durable::DurableStorageMarketStore::get_challenge

pub fn get_challenge(
        &self,
        challenge_id: &str,
    ) -> Result<Option<StorageChallengeRecord>, NodeError>;

Source line: 353.

storage_market_durable::DurableStorageMarketStore::list_challenges_by_contract

pub fn list_challenges_by_contract(
        &self,
        contract_id: &str,
    ) -> Result<Vec<StorageChallengeRecord>, NodeError>;

Source line: 362.

storage_market_durable::DurableStorageMarketStore::list_all_requests

pub fn list_all_requests(&self) -> Result<Vec<StoragePinRequest>, NodeError>;

Source line: 381.

storage_market_durable::DurableStorageMarketStore::list_all_contracts

pub fn list_all_contracts(&self) -> Result<Vec<StoragePinContract>, NodeError>;

Source line: 390.

storage_market_durable::DurableStorageMarketStore::list_all_receipts

pub fn list_all_receipts(&self) -> Result<Vec<StoragePinReceipt>, NodeError>;

Source line: 399.

storage_market_durable::DurableStorageMarketStore::list_all_challenges

pub fn list_all_challenges(&self) -> Result<Vec<StorageChallengeRecord>, NodeError>;

Source line: 408.

storage_market_durable::DurableStorageMarketStore::commit_batch

pub fn commit_batch(&self, batch: &StorageMarketWriteBatch) -> Result<(), NodeError>;

Source line: 417.

On this page

storage_market_durable::ArcStorageMarketStorestorage_market_durable::StorageMarketEventstorage_market_durable::StorageMarketBatchOpstorage_market_durable::StorageMarketWriteBatchstorage_market_durable::StorageMarketWriteBatch::newstorage_market_durable::StorageMarketWriteBatch::pushstorage_market_durable::StorageMarketWriteBatch::put_providerstorage_market_durable::StorageMarketWriteBatch::put_requeststorage_market_durable::StorageMarketWriteBatch::put_contractstorage_market_durable::StorageMarketWriteBatch::put_receiptstorage_market_durable::StorageMarketWriteBatch::put_challengestorage_market_durable::DurableStorageMarketStorestorage_market_durable::DurableStorageMarketStore::openstorage_market_durable::DurableStorageMarketStore::get_providerstorage_market_durable::DurableStorageMarketStore::list_providersstorage_market_durable::DurableStorageMarketStore::get_requeststorage_market_durable::DurableStorageMarketStore::list_requests_by_ownerstorage_market_durable::DurableStorageMarketStore::get_contractstorage_market_durable::DurableStorageMarketStore::list_contracts_by_providerstorage_market_durable::DurableStorageMarketStore::list_contracts_by_requeststorage_market_durable::DurableStorageMarketStore::get_receiptstorage_market_durable::DurableStorageMarketStore::list_receipts_by_contractstorage_market_durable::DurableStorageMarketStore::get_challengestorage_market_durable::DurableStorageMarketStore::list_challenges_by_contractstorage_market_durable::DurableStorageMarketStore::list_all_requestsstorage_market_durable::DurableStorageMarketStore::list_all_contractsstorage_market_durable::DurableStorageMarketStore::list_all_receiptsstorage_market_durable::DurableStorageMarketStore::list_all_challengesstorage_market_durable::DurableStorageMarketStore::commit_batch