rvk 0.6.0

Crate for accessing VK API
Documentation
use super::*;

/// <https://vk.com/dev/objects/post>
#[derive(Deserialize, Clone, Debug)]
pub struct Post {
    pub id: Integer,

    pub owner_id: Option<Integer>,
    pub to_id: Option<Integer>,

    pub from_id: Integer,
    pub created_by: Integer,
    pub date: Integer,
    pub text: String,
    pub reply_owner_id: Integer,
    pub reply_post_id: Integer,
    pub friends_only: Option<Integer>,
    pub comments: Comments,
    pub likes: Likes,
    pub reposts: Reposts,
    pub views: Views,
    pub post_type: String,
    pub post_source: Option<post_source::PostSource>,
    pub attachments: Option<Vec<attachment::WallAttachment>>,
    pub geo: geo::Geo,
    pub signer_id: Option<Integer>,
    pub copy_history: Option<Vec<Post>>,
    pub can_pin: Integer,
    pub can_delete: Integer,
    pub can_edit: Integer,
    pub can_open: Boolean,
    pub can_close: Boolean,
    pub is_pinned: Integer,
    pub marked_as_ads: Integer,
}

#[derive(Deserialize, Clone, Debug)]
pub struct Comments {
    pub count: Integer,
    pub can_post: Integer,
    pub groups_can_post: Integer,
}

#[derive(Deserialize, Clone, Debug)]
pub struct Likes {
    pub count: Integer,
    pub user_likes: Integer,
    pub can_like: Integer,
    pub can_publish: Integer,
}

#[derive(Deserialize, Clone, Debug)]
pub struct Reposts {
    pub count: Integer,
    pub user_reposted: Integer,
}

#[derive(Deserialize, Clone, Debug)]
pub struct Views {
    pub count: Integer,
}