pub struct ConversationInfo {
pub id: String,
pub title: String,
pub visibility: String,
pub project: Option<String>,
pub created_by: String,
pub created_at: String,
pub archived: bool,
pub last_seq: i64,
pub membership: Option<MembershipInfo>,
pub members: Vec<MembershipInfo>,
}Expand description
One conversation as a caller sees it.
Fields§
§id: String§title: String§visibility: Stringproject (everyone with access to the project can read it) or
private (only its members). Fixed at creation.
project: Option<String>Absent for a private conversation.
created_by: String§created_at: String§archived: bool§last_seq: i64Highest logical sequence in the thread. Messages are paged by this.
membership: Option<MembershipInfo>Your own membership, when you have one.
members: Vec<MembershipInfo>Everyone in the thread. Only returned to a member.
Trait Implementations§
Source§impl Debug for ConversationInfo
impl Debug for ConversationInfo
Source§impl JsonSchema for ConversationInfo
impl JsonSchema for ConversationInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ConversationInfo
impl RefUnwindSafe for ConversationInfo
impl Send for ConversationInfo
impl Sync for ConversationInfo
impl Unpin for ConversationInfo
impl UnsafeUnpin for ConversationInfo
impl UnwindSafe for ConversationInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
Converts
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> ⓘ
Converts
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