pub struct ContentContext(/* private fields */);Expand description
Content context
Implementations§
Source§impl ContentContext
impl ContentContext
Sourcepub async fn my_topics(&self, opts: MyTopicsOptions) -> Result<Vec<OwnedTopic>>
pub async fn my_topics(&self, opts: MyTopicsOptions) -> Result<Vec<OwnedTopic>>
Get topics created by the current authenticated user.
Sourcepub async fn create_topic(&self, opts: CreateTopicOptions) -> Result<String>
pub async fn create_topic(&self, opts: CreateTopicOptions) -> Result<String>
Create a new community topic.
Sourcepub async fn topics(&self, symbol: impl Into<String>) -> Result<Vec<TopicItem>>
pub async fn topics(&self, symbol: impl Into<String>) -> Result<Vec<TopicItem>>
Get discussion topics list
Sourcepub async fn topic_detail(&self, id: impl Into<String>) -> Result<OwnedTopic>
pub async fn topic_detail(&self, id: impl Into<String>) -> Result<OwnedTopic>
Get full details of a topic by its ID.
Sourcepub async fn list_topic_replies(
&self,
topic_id: impl Into<String>,
opts: ListTopicRepliesOptions,
) -> Result<Vec<TopicReply>>
pub async fn list_topic_replies( &self, topic_id: impl Into<String>, opts: ListTopicRepliesOptions, ) -> Result<Vec<TopicReply>>
List replies on a topic.
See: https://open.longbridge.com/docs/api?op=list_topic_replies
Sourcepub async fn create_topic_reply(
&self,
topic_id: impl Into<String>,
opts: CreateReplyOptions,
) -> Result<TopicReply>
pub async fn create_topic_reply( &self, topic_id: impl Into<String>, opts: CreateReplyOptions, ) -> Result<TopicReply>
Post a reply to a community topic.
See: https://open.longbridge.com/docs/api?op=create_topic_reply
Trait Implementations§
Source§impl Clone for ContentContext
impl Clone for ContentContext
Source§fn clone(&self) -> ContentContext
fn clone(&self) -> ContentContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContentContext
impl !RefUnwindSafe for ContentContext
impl Send for ContentContext
impl Sync for ContentContext
impl Unpin for ContentContext
impl UnsafeUnpin for ContentContext
impl !UnwindSafe for ContentContext
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
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>
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