Struct asana::models::story_response::StoryResponse
source · [−]pub struct StoryResponse {Show 45 fields
pub gid: Option<String>,
pub resource_type: Option<String>,
pub created_at: Option<String>,
pub resource_subtype: Option<String>,
pub text: Option<String>,
pub html_text: Option<String>,
pub is_pinned: Option<bool>,
pub sticker_name: Option<StickerName>,
pub created_by: Option<Box<UserCompact>>,
pub is_edited: Option<bool>,
pub hearted: Option<bool>,
pub hearts: Option<Vec<Like>>,
pub num_hearts: Option<i32>,
pub liked: Option<bool>,
pub likes: Option<Vec<Like>>,
pub num_likes: Option<i32>,
pub previews: Option<Vec<Preview>>,
pub old_name: Option<String>,
pub new_name: Option<String>,
pub old_dates: Option<Box<StoryResponseDates>>,
pub new_dates: Option<Box<StoryResponseDates>>,
pub old_resource_subtype: Option<String>,
pub new_resource_subtype: Option<String>,
pub story: Option<Box<StoryCompact>>,
pub assignee: Option<Box<UserCompact>>,
pub follower: Option<Box<UserCompact>>,
pub old_section: Option<Box<SectionCompact>>,
pub new_section: Option<Box<SectionCompact>>,
pub task: Option<Box<TaskCompact>>,
pub project: Option<Box<ProjectCompact>>,
pub tag: Option<Box<TagCompact>>,
pub custom_field: Option<Box<CustomFieldCompact>>,
pub old_text_value: Option<String>,
pub new_text_value: Option<String>,
pub old_number_value: Option<i32>,
pub new_number_value: Option<i32>,
pub old_enum_value: Option<Box<EnumOption>>,
pub new_enum_value: Option<Box<EnumOption>>,
pub new_approval_status: Option<String>,
pub old_approval_status: Option<String>,
pub duplicate_of: Option<Box<TaskCompact>>,
pub duplicated_from: Option<Box<TaskCompact>>,
pub dependency: Option<Box<TaskCompact>>,
pub source: Option<Source>,
pub target: Option<Box<Value>>,
}
Fields
gid: Option<String>
Globally unique identifier of the resource, as a string.
resource_type: Option<String>
The base type of this resource.
created_at: Option<String>
The time at which this resource was created.
resource_subtype: Option<String>
The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning.
text: Option<String>
The plain text of the comment to add. Cannot be used with html_text.
html_text: Option<String>
Opt In. HTML formatted text for a comment. This will not include the name of the creator.
is_pinned: Option<bool>
Conditional. Whether the story should be pinned on the resource.
sticker_name: Option<StickerName>
The name of the sticker in this story. null
if there is no sticker.
created_by: Option<Box<UserCompact>>
is_edited: Option<bool>
Conditional. Whether the text of the story has been edited after creation.
hearted: Option<bool>
Deprecated - please use likes instead Conditional. True if the story is hearted by the authorized user, false if not.
hearts: Option<Vec<Like>>
Deprecated - please use likes instead Conditional. Array of likes for users who have hearted this story.
num_hearts: Option<i32>
Deprecated - please use likes instead Conditional. The number of users who have hearted this story.
liked: Option<bool>
Conditional. True if the story is liked by the authorized user, false if not.
likes: Option<Vec<Like>>
Conditional. Array of likes for users who have liked this story.
num_likes: Option<i32>
Conditional. The number of users who have liked this story.
previews: Option<Vec<Preview>>
Conditional. A collection of previews to be displayed in the story. Note: This property only exists for comment stories.
old_name: Option<String>
Conditional’
new_name: Option<String>
Conditional
old_dates: Option<Box<StoryResponseDates>>
new_dates: Option<Box<StoryResponseDates>>
old_resource_subtype: Option<String>
Conditional
new_resource_subtype: Option<String>
Conditional
story: Option<Box<StoryCompact>>
assignee: Option<Box<UserCompact>>
follower: Option<Box<UserCompact>>
old_section: Option<Box<SectionCompact>>
new_section: Option<Box<SectionCompact>>
task: Option<Box<TaskCompact>>
project: Option<Box<ProjectCompact>>
tag: Option<Box<TagCompact>>
custom_field: Option<Box<CustomFieldCompact>>
old_text_value: Option<String>
Conditional
new_text_value: Option<String>
Conditional
old_number_value: Option<i32>
Conditional
new_number_value: Option<i32>
Conditional
old_enum_value: Option<Box<EnumOption>>
new_enum_value: Option<Box<EnumOption>>
new_approval_status: Option<String>
Conditional
old_approval_status: Option<String>
Conditional
duplicate_of: Option<Box<TaskCompact>>
duplicated_from: Option<Box<TaskCompact>>
dependency: Option<Box<TaskCompact>>
source: Option<Source>
The component of the Asana product the user used to trigger the story.
target: Option<Box<Value>>
The object this story is associated with. Currently may only be a task.
Implementations
sourceimpl StoryResponse
impl StoryResponse
pub fn new() -> StoryResponse
Trait Implementations
sourceimpl Clone for StoryResponse
impl Clone for StoryResponse
sourcefn clone(&self) -> StoryResponse
fn clone(&self) -> StoryResponse
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more