Struct Circle
pub struct Circle {
pub name: String,
pub id: String,
pub owner: Box<Profile>,
pub metadata: CircleMetadata,
pub timestamp: u128,
}Expand description
A circle structure
Circles allow you to post global questions to them (recipient @circle),
as well as define a custom avatar URL, banner URL, and define a custom theme
Users can also ask a question and send it to the circle’s inbox. This question can then be replied to by anybody in the circle.
Users can be invited to a circle by the circle’s owner. Users are added to the xcircle_memberships
table with a MembershipStatus of Pending. Users can accept through a notification that is sent
to their account, which will then change their MembershipStatus to Active.
Active members can post to the circle through the compose form. Memberships can always be managed by the owner of the circle, who can remove anybody they want from the circle.
Fields§
§name: StringThe name of the circle
id: StringThe ID of the circle
owner: Box<Profile>The owner of the circle
metadata: CircleMetadataThe metadata of the circle
timestamp: u128The time the circle was created
Trait Implementations§
§impl<'de> Deserialize<'de> for Circle
impl<'de> Deserialize<'de> for Circle
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Circle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Circle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for Circle
impl Serialize for Circle
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for Circle
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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