pub struct ApprovalGroupView {
pub ref: Option<RecordRef>,
pub version: Vec<u8>,
pub name: String,
pub description: String,
pub member_role: i32,
pub resolved_members: Vec<SuggestedPrincipal>,
pub role_member_handles: Vec<String>,
pub explicit_member_handles: Vec<String>,
pub resolved_member_count: u32,
pub role_member_count: u32,
pub explicit_member_count: u32,
}Expand description
ObserveSpool approval-groups snapshot/update projection. Field 5 is reserved so an old principal_ids list can never be interpreted as public metadata.
Fields§
§ref: Option<RecordRef>§version: Vec<u8>§name: String§description: String§member_role: i32§resolved_members: Vec<SuggestedPrincipal>MEMBERS-section read (current member-only) is mandatory for BOTH handle lists below, in addition to approval-group section read. Exclude hidden and absent handles. Otherwise return counts only, with all handle lists empty. Current union of explicit and role members, eligible humans only. Handles/display names; never account IDs. Uses section pagination for groups.
role_member_handles: Vec<String>Subset supplied by member_role, letting UI label “Ada, Mara (admins) and jun” without exposing explicit principal_ids. Sorted canonical handles.
explicit_member_handles: Vec<String>ADMINISTRATOR AND MEMBERS-section read required. Explicit configuration, including currently ineligible extras, for edit round-trips. Hidden/no-handle humans excluded; hosts retain their private bindings when editing visible extras.
resolved_member_count: u32Counts are available with approval-group section read alone.
role_member_count: u32§explicit_member_count: u32Implementations§
Source§impl ApprovalGroupView
impl ApprovalGroupView
Sourcepub fn member_role(&self) -> ResourceRole
pub fn member_role(&self) -> ResourceRole
Returns the enum value of member_role, or the default if the field is set to an invalid enum value.
Sourcepub fn set_member_role(&mut self, value: ResourceRole)
pub fn set_member_role(&mut self, value: ResourceRole)
Sets member_role to the provided enum value.
Trait Implementations§
Source§impl Clone for ApprovalGroupView
impl Clone for ApprovalGroupView
Source§fn clone(&self) -> ApprovalGroupView
fn clone(&self) -> ApprovalGroupView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ApprovalGroupView
impl Debug for ApprovalGroupView
Source§impl Default for ApprovalGroupView
impl Default for ApprovalGroupView
Source§fn default() -> ApprovalGroupView
fn default() -> ApprovalGroupView
Source§impl Message for ApprovalGroupView
impl Message for ApprovalGroupView
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ApprovalGroupView
impl PartialEq for ApprovalGroupView
impl StructuralPartialEq for ApprovalGroupView
Auto Trait Implementations§
impl Freeze for ApprovalGroupView
impl RefUnwindSafe for ApprovalGroupView
impl Send for ApprovalGroupView
impl Sync for ApprovalGroupView
impl Unpin for ApprovalGroupView
impl UnsafeUnpin for ApprovalGroupView
impl UnwindSafe for ApprovalGroupView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more