#[non_exhaustive]pub struct OrgUnit {
pub at_type: Option<String>,
pub name: String,
pub sort_as: Option<String>,
pub extra: Map<String, Value>,
}Expand description
An organizational unit within an Organization (RFC 9553 §2.2.3).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.at_type: Option<String>Object type discriminator; SHOULD be "OrgUnit" when present per RFC 9553 §1.3.4 (may be omitted in defaultType positions).
name: StringThe name of the unit.
sort_as: Option<String>The verbatim string for lexicographic sort within this level.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OrgUnit
impl<'de> Deserialize<'de> for OrgUnit
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 OrgUnit
impl StructuralPartialEq for OrgUnit
Auto Trait Implementations§
impl Freeze for OrgUnit
impl RefUnwindSafe for OrgUnit
impl Send for OrgUnit
impl Sync for OrgUnit
impl Unpin for OrgUnit
impl UnsafeUnpin for OrgUnit
impl UnwindSafe for OrgUnit
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