Skip to main content

ConfigurationEdit

Enum ConfigurationEdit 

Source
pub enum ConfigurationEdit {
Show 23 variants EnrollNode { request: String, can_configure: bool, invitation: Option<String>, }, RemoveNode { node_id: String, }, DelegateNode { node_id: String, allow: bool, }, HostNode { node_id: String, parent: String, }, CreateGroup { name: String, }, DeleteGroup { name: String, }, GroupMembers { group: String, members: Vec<String>, action: GroupAction, }, GrantGroupAdmin { grant_id: String, administrator: String, group: String, members: Selector, actions: Vec<GroupAction>, lifetime_seconds: u64, }, RevokeGroupAdmin { grant_id: String, }, AgentGroups { administrator: String, request_id: String, changes: Vec<GroupChange>, }, SetPermissionRule { actor: Selector, peer: Selector, permission: Permission, effect: Option<Effect>, }, Policy { policy: Policy, }, Replace { cluster_name: String, node_name: String, policy: Policy, }, RenameNode { name: String, }, RenameMember { node_id: String, name: String, }, SetReleaseChannel { channel: ReleaseChannel, }, Renew, GrantRelay { grant_id: String, intermediary: String, target: String, lifetime_seconds: u64, }, RevokeRelay { grant_id: String, }, GrantPermissionAdmin { grant_id: String, administrator: String, actor: Selector, peer: Selector, permissions: Vec<Permission>, selector_rules: bool, lifetime_seconds: u64, }, RevokePermissionAdmin { grant_id: String, }, AgentPermissions { administrator: String, request_id: String, changes: Vec<PermissionChange>, }, AgentPermissionRules { administrator: String, request_id: String, changes: Vec<PermissionRuleChange>, },
}

Variants§

§

EnrollNode

Fields

§request: String
§can_configure: bool
§invitation: Option<String>
§

RemoveNode

Fields

§node_id: String
§

DelegateNode

Fields

§node_id: String
§allow: bool
§

HostNode

Administrator-approved chat transport delegation; does not grant configuration access.

Fields

§node_id: String
§parent: String
§

CreateGroup

Fields

§name: String
§

DeleteGroup

Fields

§name: String
§

GroupMembers

Fields

§group: String
§members: Vec<String>
§

GrantGroupAdmin

Fields

§grant_id: String
§administrator: String
§group: String
§members: Selector
§actions: Vec<GroupAction>
§lifetime_seconds: u64
§

RevokeGroupAdmin

Fields

§grant_id: String
§

AgentGroups

Fields

§administrator: String
§request_id: String
§changes: Vec<GroupChange>
§

SetPermissionRule

Fields

§actor: Selector
§permission: Permission
§effect: Option<Effect>
§

Policy

Fields

§policy: Policy
§

Replace

Fields

§cluster_name: String
§node_name: String
§policy: Policy
§

RenameNode

Fields

§name: String
§

RenameMember

Rename this enrolled member in signed configuration, independently of the proposer.

Fields

§node_id: String
§name: String
§

SetReleaseChannel

Fields

§

Renew

§

GrantRelay

Fields

§grant_id: String
§intermediary: String
§target: String
§lifetime_seconds: u64
§

RevokeRelay

Fields

§grant_id: String
§

GrantPermissionAdmin

Fields

§grant_id: String
§administrator: String
§actor: Selector
§permissions: Vec<Permission>
§selector_rules: bool
§lifetime_seconds: u64
§

RevokePermissionAdmin

Fields

§grant_id: String
§

AgentPermissions

Internal authenticated proposal; MCP supplies neither administrator nor origin node. The owner rechecks both and every grant before accepting it.

Fields

§administrator: String
§request_id: String
§

AgentPermissionRules

Fields

§administrator: String
§request_id: String

Trait Implementations§

Source§

impl Clone for ConfigurationEdit

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConfigurationEdit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ConfigurationEdit

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ConfigurationEdit

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Forget for ConfigurationEdit

§

impl Freeze for ConfigurationEdit

§

impl Move for ConfigurationEdit

§

impl RefUnwindSafe for ConfigurationEdit

§

impl Send for ConfigurationEdit
where RawVecInner: Send, NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Send, BoxRaw<(String, Vec<String>)>: Send, NodeRef<Owned, String, RelayGrant, LeafOrInternal>: Send, BoxRaw<(String, RelayGrant)>: Send, NodeRef<Owned, String, AdminGrant, LeafOrInternal>: Send, BoxRaw<(String, AdminGrant)>: Send, NodeRef<Owned, String, GroupAdminGrant, LeafOrInternal>: Send, BoxRaw<(String, GroupAdminGrant)>: Send,

§

impl Sync for ConfigurationEdit
where RawVecInner: Sync, NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Sync, BoxRaw<(String, Vec<String>)>: Sync, NodeRef<Owned, String, RelayGrant, LeafOrInternal>: Sync, BoxRaw<(String, RelayGrant)>: Sync, NodeRef<Owned, String, AdminGrant, LeafOrInternal>: Sync, BoxRaw<(String, AdminGrant)>: Sync, NodeRef<Owned, String, GroupAdminGrant, LeafOrInternal>: Sync, BoxRaw<(String, GroupAdminGrant)>: Sync,

§

impl Unpin for ConfigurationEdit
where *const u8 is !null: Unpin, *const LeafNode<String, Vec<String>> is !null: Unpin, Box<(String, Vec<String>)>: Unpin, *const LeafNode<String, RelayGrant> is !null: Unpin, Box<(String, RelayGrant)>: Unpin, *const LeafNode<String, AdminGrant> is !null: Unpin, Box<(String, AdminGrant)>: Unpin, *const LeafNode<String, GroupAdminGrant> is !null: Unpin, Box<(String, GroupAdminGrant)>: Unpin,

§

impl UnsafeUnpin for ConfigurationEdit

§

impl UnwindSafe for ConfigurationEdit

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.