pub struct CreateProofInput {Show 15 fields
pub session_id: Uuid,
pub content_cid: String,
pub chunk_index: u64,
pub bytes_transferred: u64,
pub provider_peer_id: String,
pub requester_peer_id: String,
pub provider_public_key: Vec<u8>,
pub requester_public_key: Vec<u8>,
pub provider_signature: Vec<u8>,
pub requester_signature: Vec<u8>,
pub challenge_nonce: Vec<u8>,
pub chunk_hash: Vec<u8>,
pub start_timestamp_ms: i64,
pub end_timestamp_ms: i64,
pub latency_ms: u32,
}Expand description
Input type for creating a bandwidth proof record.
Fields§
§session_id: Uuid§content_cid: String§chunk_index: u64§bytes_transferred: u64§provider_peer_id: String§requester_peer_id: String§provider_public_key: Vec<u8>§requester_public_key: Vec<u8>§provider_signature: Vec<u8>§requester_signature: Vec<u8>§challenge_nonce: Vec<u8>§chunk_hash: Vec<u8>§start_timestamp_ms: i64§end_timestamp_ms: i64§latency_ms: u32Trait Implementations§
Source§impl Clone for CreateProofInput
impl Clone for CreateProofInput
Source§fn clone(&self) -> CreateProofInput
fn clone(&self) -> CreateProofInput
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 CreateProofInput
impl Debug for CreateProofInput
Source§impl From<&BandwidthProof> for CreateProofInput
impl From<&BandwidthProof> for CreateProofInput
Source§fn from(proof: &BandwidthProof) -> Self
fn from(proof: &BandwidthProof) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateProofInput
impl RefUnwindSafe for CreateProofInput
impl Send for CreateProofInput
impl Sync for CreateProofInput
impl Unpin for CreateProofInput
impl UnwindSafe for CreateProofInput
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