pub struct Piece {
pub id: String,
pub torrent_id: String,
pub available: bool,
pub downloaded: bool,
pub index: u32,
pub user_data: Value,
}Fields§
§id: String§torrent_id: String§available: bool§downloaded: bool§index: u32§user_data: ValueImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Piece
impl<'de> Deserialize<'de> for Piece
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
impl StructuralPartialEq for Piece
Auto Trait Implementations§
impl Freeze for Piece
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnwindSafe for Piece
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