Enum sn_messaging::client::MapWrite [−][src]
pub enum MapWrite { New(Map), Delete(Address), Edit { address: Address, changes: Changes, }, DelUserPermissions { address: Address, user: PublicKey, version: u64, }, SetUserPermissions { address: Address, user: PublicKey, permissions: PermissionSet, version: u64, }, }
TODO: docs
Variants
New(Map)
Create new Map.
Delete(Address)
Delete instance.
Edit entries.
Delete user permissions.
Show fields
Set user permissions.
Show fields
Fields of SetUserPermissions
address: Address
Map address.
user: PublicKey
User to set permissions for.
permissions: PermissionSet
New permissions.
version: u64
Version to set.
Implementations
impl MapWrite
[src]
impl MapWrite
[src]pub fn error(&self, error: Error) -> CmdError
[src]
Creates a Response containing an error, with the Response variant corresponding to the Request variant.
pub fn dst_address(&self) -> XorName
[src]
Returns the address of the destination for request.
pub fn owner(&self) -> Option<PublicKey>
[src]
Returns the owner of the data on a New map write.
Trait Implementations
impl<'de> Deserialize<'de> for MapWrite
[src]
impl<'de> Deserialize<'de> for MapWrite
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialOrd<MapWrite> for MapWrite
[src]
impl PartialOrd<MapWrite> for MapWrite
[src]impl StructuralEq for MapWrite
[src]
impl StructuralEq for MapWrite
[src]impl StructuralPartialEq for MapWrite
[src]
impl StructuralPartialEq for MapWrite
[src]Auto Trait Implementations
impl RefUnwindSafe for MapWrite
impl RefUnwindSafe for MapWrite
impl UnwindSafe for MapWrite
impl UnwindSafe for MapWrite
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,