Enum dsnp_graph_sdk_ffi::Action
source · #[repr(C)]pub enum Action {
Connect {
owner_dsnp_user_id: DsnpUserId,
connection: Connection,
dsnp_keys: *mut DsnpKeys,
},
Disconnect {
owner_dsnp_user_id: DsnpUserId,
connection: Connection,
},
AddGraphKey {
owner_dsnp_user_id: DsnpUserId,
new_public_key: *const u8,
new_public_key_len: size_t,
},
}
Expand description
Different kind of actions that can be applied to the graph
Variants§
Connect
Fields
§
owner_dsnp_user_id: DsnpUserId
owner of the social graph
§
connection: Connection
connection details
an action that defines adding a connection in the social graph
Disconnect
Fields
§
owner_dsnp_user_id: DsnpUserId
owner of the social graph
§
connection: Connection
connection details
an action that defines removing an existing connection from social graph
AddGraphKey
an action that defines adding a new key to chain
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Action
impl !Send for Action
impl !Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more