Struct asuran::manifest::archive::Node [−][src]
pub struct Node {
pub path: String,
pub total_length: u64,
pub total_size: u64,
pub extents: Option<Vec<Extent, Global>>,
pub node_type: NodeType,
}
Expand description
A node is a description of an object in the listing
Fields
path: String
The path of the object, in its orignal form before archive mangling
Object paths are simply arbitrary strings
total_length: u64
The total length of the object, including holes in sparse objects
total_size: u64
The total size of an object, not including holes in sparse files
extents: Option<Vec<Extent, Global>>
The extents that make up a sparse object.
This will be None if the object is not sparse.
node_type: NodeType
the type of the node
Implementations
Returns true if the Node is a directory
Returns a copy of self with any children (in a NodeType::Directory
) removed
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Node, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Node, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Node
impl UnwindSafe for Node
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more