pub struct UserNode {
pub node: GraphNode,
pub user_id: String,
pub user_name: String,
pub department: Option<String>,
pub role: Option<String>,
pub manager_id: Option<String>,
pub approval_limit: Option<Decimal>,
pub is_active: bool,
}Expand description
User node for approval networks.
Fields§
§node: GraphNodeBase node.
user_id: StringUser ID.
user_name: StringUser name.
department: Option<String>Department.
role: Option<String>Role.
manager_id: Option<String>Manager ID.
approval_limit: Option<Decimal>Approval limit.
is_active: boolIs active.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserNode
impl<'de> Deserialize<'de> for UserNode
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
Auto Trait Implementations§
impl Freeze for UserNode
impl RefUnwindSafe for UserNode
impl Send for UserNode
impl Sync for UserNode
impl Unpin for UserNode
impl UnwindSafe for UserNode
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