[−][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.
GetMDataValueGet 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.
SetMDataUserPermissionsSet MutableData user permissions.
Fields of SetMDataUserPermissions
address: MDataAddressMutableData address.
user: PublicKeyUser to set permissions for.
permissions: MDataPermissionSetNew permissions.
version: u64Version to set.
DelMDataUserPermissionsDelete MutableData user permissions.
Fields of DelMDataUserPermissions
address: MDataAddressMutableData address.
user: PublicKeyUser to delete permissions for.
version: u64Version to delete.
ListMDataPermissions(MDataAddress)List MutableData permissions.
ListMDataUserPermissionsGet MutableData permissions for a user.
Fields of ListMDataUserPermissions
MutateMDataEntriesMutate MutableData entries.
Fields of MutateMDataEntries
PutAData(AData)Put a new AppendOnlyData onto the network.
GetAData(ADataAddress)Get AppendOnlyData from the network.
GetADataShellGet AppendOnlyData shell at a certain point in history (data_index refers to the list of
data).
Fields of GetADataShell
address: ADataAddressAppendOnlyData address.
data_index: ADataIndexIndex 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.
GetADataRangeGet a range of entries from an AppendOnlyData object on the network.
Fields of GetADataRange
address: ADataAddressAppendOnlyData 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))
GetADataValueGet AppendOnlyData value.
Fields of GetADataValue
GetADataIndices(ADataAddress)Get current indices: data, owners, permissions.
GetADataLastEntry(ADataAddress)Get an entry with the current index.
GetADataPermissionsList all permissions at the provided index.
Fields of GetADataPermissions
GetPubADataUserPermissionsGet published permissions for a specified user(s).
Fields of GetPubADataUserPermissions
address: ADataAddressAppendOnlyData address.
permissions_index: ADataIndexPermissions index.
user: ADataUserUser to get permissions for.
GetUnpubADataUserPermissionsGet unpublished permissions for a specified user(s).
Fields of GetUnpubADataUserPermissions
address: ADataAddressAppendOnlyData address.
permissions_index: ADataIndexPermissions index.
public_key: PublicKeyUser to get permissions for.
GetADataOwnersGet owners at the provided index.
Fields of GetADataOwners
AddPubADataPermissionsAdd a new published permissions entry.
Fields of AddPubADataPermissions
address: ADataAddressAppendOnlyData address.
permissions: ADataPubPermissionsPublished permissions.
permissions_index: u64Index to add to.
AddUnpubADataPermissionsAdd a new unpublished permissions entry.
Fields of AddUnpubADataPermissions
address: ADataAddressAppendOnlyData address.
permissions: ADataUnpubPermissionsUnpublished permissions.
permissions_index: u64Index to add to.
SetADataOwnerAdd a new owners entry. Only the current owner(s) can perform this action.
Fields of SetADataOwner
address: ADataAddressAppendOnlyData address.
owner: ADataOwnerNew owner.
owners_index: u64Owners index.
AppendSeqAppend sequenced AppendOnlyData at the given index.
Fields of AppendSeq
AppendUnseq(ADataAppendOperation)Append unsequenced AppendOnlyData.
TransferCoinsBalance transfer.
Fields of TransferCoins
destination: XorNameThe destination to transfer to.
amount: CoinsThe amount in coins to transfer.
transaction_id: TransactionIdThe ID of the transaction.
GetBalanceGet current wallet balance.
CreateBalanceCreate a new coin balance.
Fields of CreateBalance
new_balance_owner: PublicKeyThe new owner of the balance.
amount: CoinsThe new balance amount in coins.
transaction_id: TransactionIdThe ID of the transaction.
CreateLoginPacket(LoginPacket)Create a login packet.
CreateLoginPacketForCreate a login packet for a given user and transfer some initial coins.
Fields of CreateLoginPacketFor
new_owner: PublicKeyThe new owner of the login packet.
amount: CoinsThe new balance amount in coins.
transaction_id: TransactionIdThe ID of the transaction.
new_login_packet: LoginPacketThe new login packet.
UpdateLoginPacket(LoginPacket)Update a login packet.
GetLoginPacket(XorName)Get an encrypted login packet.
ListAuthKeysAndVersionList authorised keys and version stored by Elders.
InsAuthKeyInsert an authorised key (for an app, user, etc.).
Fields of InsAuthKey
key: PublicKeyAuthorised key to be inserted
version: u64Incremented version
permissions: AppPermissionsPermissions
DelAuthKeyDelete an authorised key.
Fields of DelAuthKey
Methods
impl Request[src]
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 Ord for Request[src]
fn cmp(&self, other: &Request) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self[src]
clamp)Restrict a value to a certain interval. Read more
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 Clone for Request[src]
fn clone(&self) -> Request[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<Request> for Request[src]
impl Eq for Request[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,
Feeds a slice of this type into the given [Hasher]. Read more
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 Unpin for Request
impl Send for Request
impl Sync for Request
impl RefUnwindSafe for Request
impl UnwindSafe 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 = Infallible
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> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
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