Crate mega

Source
Expand description

This is an API client library for interacting with MEGA’s API using Rust.

Structs§

Client
The MEGA API Client itself.
ClientBuilder
A builder to initialize a Client instance.
EventBatch
A batch of MEGA-emitted events.
EventNode
Represents a node, as part of an Event.
EventNodeAttributes
Represents the updated attributes of a node, as part of an Event.
FileNode
Represents a node in MEGA.
Node
Represents a node stored in MEGA (either a file or a folder).
Nodes
Represents a collection of nodes from MEGA.
SessionInfo
Represents information about a user session.
StorageQuotas
Represents storage quotas from MEGA.
UserInfo
Represents information about a MEGA user.

Enums§

Error
The main error type for this library.
ErrorCode
Error code originating from MEGA’s API.
Event
A MEGA-emitted event.
LastModified
Represents the last modified date to set for a newly uploaded MEGA node.
NodeKind
Represents the kind of a given node.

Functions§

compute_condensed_mac
This function computes a full-coverage condensed MAC, in the exact same way that MEGA does it.
compute_sparse_checksum
This function computes a sparse CRC32-based checksum, in the exact same way that MEGA does it.

Type Aliases§

Result
The Result type for this library.