pub struct Entity {
pub entity_type: EntityType,
pub code: String,
}Expand description
Represents a generic entity in Kintone’s user management system.
An entity can be a user, group, or organization, identified by its type and code. This structure is commonly used in permission settings, assignee specifications, and other contexts where you need to reference a Kintone entity.
§Fields
entity_type- The type of entity (USER, GROUP, or ORGANIZATION)code- The unique identifier code for the entity
§Examples
use kintone::model::{Entity, EntityType};
// Create a user entity
let user_entity = Entity {
entity_type: EntityType::USER,
code: "john.doe".to_owned(),
};
// Create a group entity
let group_entity = Entity {
entity_type: EntityType::GROUP,
code: "development-team".to_owned(),
};Fields§
§entity_type: EntityType§code: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Entity
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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