pub struct FriendGroup {
pub group_id: i32,
pub group_name: String,
}Expand description
好友分组(Lagrange get_friend_list 元素的 group 子对象)。
与 FriendCategory 区别:category 来自 NapCat/LLOneBot 的 categoryId/categroyName
扁平字段或 Milky 的嵌套 entity;group 是 Lagrange 私有的 {group_id, group_name}。
OFFICIAL: Lagrange.OneBot get_friend_list(friend.group → FriendGroup)。
Fields§
§group_id: i32§group_name: StringTrait Implementations§
Source§impl Clone for FriendGroup
impl Clone for FriendGroup
Source§fn clone(&self) -> FriendGroup
fn clone(&self) -> FriendGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FriendGroup
impl RefUnwindSafe for FriendGroup
impl Send for FriendGroup
impl Sync for FriendGroup
impl Unpin for FriendGroup
impl UnsafeUnpin for FriendGroup
impl UnwindSafe for FriendGroup
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