[−][src]Enum safe_nd::Request
RPC Request that is sent to vaults.
Variants
PutIData(IData)
Put ImmutableData.
GetIData(IDataAddress)
Get ImmutableData.
DeleteUnpubIData(IDataAddress)
Delete unpublished ImmutableData.
PutMData(MData)
Put MutableData.
GetMData(MDataAddress)
Get MutableData.
Get MutableData value.
Fields of GetMDataValue
DeleteMData(MDataAddress)
Delete MutableData.
GetMDataShell(MDataAddress)
Get MutableData shell.
GetMDataVersion(MDataAddress)
Get MutableData version.
ListMDataEntries(MDataAddress)
List MutableData entries.
ListMDataKeys(MDataAddress)
List MutableData keys.
ListMDataValues(MDataAddress)
List MutableData values.
Set MutableData user permissions.
Fields of SetMDataUserPermissions
address: MDataAddress
MutableData address.
user: PublicKey
User to set permissions for.
permissions: MDataPermissionSet
New permissions.
version: u64
Version to set.
Delete MutableData user permissions.
Fields of DelMDataUserPermissions
address: MDataAddress
MutableData address.
user: PublicKey
User to delete permissions for.
version: u64
Version to delete.
ListMDataPermissions(MDataAddress)
List MutableData permissions.
Get MutableData permissions for a user.
Fields of ListMDataUserPermissions
Mutate MutableData entries.
Fields of MutateMDataEntries
PutAData(AData)
Put a new AppendOnlyData onto the network.
GetAData(ADataAddress)
Get AppendOnlyData from the network.
Get AppendOnlyData shell at a certain point in history (data_index
refers to the list of
data).
Fields of GetADataShell
address: ADataAddress
AppendOnlyData address.
data_index: ADataIndex
Index of the data at which to get the shell.
DeleteAData(ADataAddress)
Delete an unpublished AppendOnlyData
.
This operation MUST return an error if applied to published AppendOnlyData. Only the current owner(s) can perform this action.
Get a range of entries from an AppendOnlyData object on the network.
Fields of GetADataRange
address: ADataAddress
AppendOnlyData address.
range: (ADataIndex, ADataIndex)
Range of entries to fetch.
For example, get 10 last entries: range: (Index::FromEnd(10), Index::FromEnd(0))
Get all entries: range: (Index::FromStart(0), Index::FromEnd(0))
Get first 5 entries: range: (Index::FromStart(0), Index::FromStart(5))
Get AppendOnlyData value.
Fields of GetADataValue
GetADataIndices(ADataAddress)
Get current indices: data, owners, permissions.
GetADataLastEntry(ADataAddress)
Get an entry with the current index.
List all permissions at the provided index.
Fields of GetADataPermissions
Get published permissions for a specified user(s).
Fields of GetPubADataUserPermissions
address: ADataAddress
AppendOnlyData address.
permissions_index: ADataIndex
Permissions index.
user: ADataUser
User to get permissions for.
Get unpublished permissions for a specified user(s).
Fields of GetUnpubADataUserPermissions
address: ADataAddress
AppendOnlyData address.
permissions_index: ADataIndex
Permissions index.
public_key: PublicKey
User to get permissions for.
Get owners at the provided index.
Fields of GetADataOwners
Add a new published permissions
entry.
Fields of AddPubADataPermissions
address: ADataAddress
AppendOnlyData address.
permissions: ADataPubPermissions
Published permissions.
permissions_index: u64
Index to add to.
Add a new unpublished permissions
entry.
Fields of AddUnpubADataPermissions
address: ADataAddress
AppendOnlyData address.
permissions: ADataUnpubPermissions
Unpublished permissions.
permissions_index: u64
Index to add to.
Add a new owners
entry. Only the current owner(s) can perform this action.
Fields of SetADataOwner
address: ADataAddress
AppendOnlyData address.
owner: ADataOwner
New owner.
owners_index: u64
Owners index.
Append sequenced AppendOnlyData at the given index.
Fields of AppendSeq
AppendUnseq(ADataAppendOperation)
Append unsequenced AppendOnlyData.
Balance transfer.
Fields of TransferCoins
destination: XorName
The destination to transfer to.
amount: Coins
The amount in coins to transfer.
transaction_id: TransactionId
The ID of the transaction.
Get current wallet balance.
Create a new coin balance.
Fields of CreateBalance
new_balance_owner: PublicKey
The new owner of the balance.
amount: Coins
The new balance amount in coins.
transaction_id: TransactionId
The ID of the transaction.
CreateLoginPacket(LoginPacket)
Create a login packet.
Create a login packet for a given user and transfer some initial coins.
Fields of CreateLoginPacketFor
new_owner: PublicKey
The new owner of the login packet.
amount: Coins
The new balance amount in coins.
transaction_id: TransactionId
The ID of the transaction.
new_login_packet: LoginPacket
The new login packet.
UpdateLoginPacket(LoginPacket)
Update a login packet.
GetLoginPacket(XorName)
Get an encrypted login packet.
List authorised keys and version stored by Elders.
Insert an authorised key (for an app, user, etc.).
Fields of InsAuthKey
key: PublicKey
Authorised key to be inserted
version: u64
Incremented version
permissions: AppPermissions
Permissions
Delete an authorised key.
Methods
impl Request
[src]
pub fn get_type(&self) -> RequestType
[src]
Get the RequestType
of this Request
.
pub fn error_response(&self, error: Error) -> Response
[src]
Creates a Response containing an error, with the Response variant corresponding to the Request variant.
Trait Implementations
impl Clone for Request
[src]
impl Eq for Request
[src]
impl Ord for Request
[src]
fn cmp(&self, other: &Request) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Request> for Request
[src]
impl PartialOrd<Request> for Request
[src]
fn partial_cmp(&self, other: &Request) -> Option<Ordering>
[src]
fn lt(&self, other: &Request) -> bool
[src]
fn le(&self, other: &Request) -> bool
[src]
fn gt(&self, other: &Request) -> bool
[src]
fn ge(&self, other: &Request) -> bool
[src]
impl Debug for Request
[src]
impl Hash for Request
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for Request
[src]
impl StructuralEq for Request
[src]
impl Serialize for Request
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Request
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
impl RefUnwindSafe for Request
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self