pub struct CreateTopicOptions {
pub title: String,
pub body: String,
pub topic_type: Option<String>,
pub tickers: Option<Vec<String>>,
pub hashtags: Option<Vec<String>>,
}Expand description
Options for creating a topic
Fields§
§title: StringTopic title (required)
body: StringTopic body in Markdown format (required)
topic_type: Option<String>Content type: “article” (long-form) or “post” (short post, default)
tickers: Option<Vec<String>>Related stock tickers, format: {symbol}.{market}, max 10
Hashtag names, max 5
Trait Implementations§
Source§impl Clone for CreateTopicOptions
impl Clone for CreateTopicOptions
Source§fn clone(&self) -> CreateTopicOptions
fn clone(&self) -> CreateTopicOptions
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 moreSource§impl Debug for CreateTopicOptions
impl Debug for CreateTopicOptions
Auto Trait Implementations§
impl Freeze for CreateTopicOptions
impl RefUnwindSafe for CreateTopicOptions
impl Send for CreateTopicOptions
impl Sync for CreateTopicOptions
impl Unpin for CreateTopicOptions
impl UnsafeUnpin for CreateTopicOptions
impl UnwindSafe for CreateTopicOptions
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