pub struct AlbumGroupInvite {
pub group_id: Uuid,
pub group_name: String,
pub siblings: Vec<MemberHint>,
}Expand description
Group-aware invite data riding the existing album invite: the group_id plus the sibling
hints a joiner seeds its own assertion from. This carries the group facts as data; the
interactive membership ceremony (delivering the AMK, the MLS Welcome) belongs to the
MLS authority’s membership layer and is blocked — same caveat as the organization doc’s
invitation surface. A joiner turns this into its own constituent’s AlbumGroupAssertion with to_assertion.
Fields§
§group_id: UuidThe group being joined.
group_name: StringThe group name at invite time (seeds the joiner’s LWW register; later renames converge).
siblings: Vec<MemberHint>The sibling constituents the joiner should try to read (advisory; membership still admits).
Implementations§
Source§impl AlbumGroupInvite
impl AlbumGroupInvite
Sourcepub fn to_assertion(
&self,
own_album: Uuid,
own_server: impl Into<String>,
ts: impl Into<String>,
device: Uuid,
) -> AlbumGroupAssertion
pub fn to_assertion( &self, own_album: Uuid, own_server: impl Into<String>, ts: impl Into<String>, device: Uuid, ) -> AlbumGroupAssertion
Build the assertion a joining contributor writes into their own constituent
(own_album / own_server): asserts the invited group_id, seeds the group name, and
carries the invite’s siblings plus the joiner’s own constituent as advisory hints. Unsigned
— the caller signs it before sealing it onto the op path.
Trait Implementations§
Source§impl Clone for AlbumGroupInvite
impl Clone for AlbumGroupInvite
Source§fn clone(&self) -> AlbumGroupInvite
fn clone(&self) -> AlbumGroupInvite
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 AlbumGroupInvite
impl Debug for AlbumGroupInvite
Source§impl<'de> Deserialize<'de> for AlbumGroupInvite
impl<'de> Deserialize<'de> for AlbumGroupInvite
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>,
impl Eq for AlbumGroupInvite
Source§impl PartialEq for AlbumGroupInvite
impl PartialEq for AlbumGroupInvite
Source§fn eq(&self, other: &AlbumGroupInvite) -> bool
fn eq(&self, other: &AlbumGroupInvite) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AlbumGroupInvite
impl Serialize for AlbumGroupInvite
impl StructuralPartialEq for AlbumGroupInvite
Auto Trait Implementations§
impl Freeze for AlbumGroupInvite
impl RefUnwindSafe for AlbumGroupInvite
impl Send for AlbumGroupInvite
impl Sync for AlbumGroupInvite
impl Unpin for AlbumGroupInvite
impl UnsafeUnpin for AlbumGroupInvite
impl UnwindSafe for AlbumGroupInvite
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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