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