vt3 0.7.3

VirusTotal REST API v3 (Public & Enterprise)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::public_api::{comment::CommentAttributes, model::Object, votes::VoteAttributes};

type CreateCommentReq = Object<CommentAttributes>;

pub fn create_comment_req(attrs: CommentAttributes) -> CreateCommentReq {
    CreateCommentReq::build(Some("comment".to_string()), Some(attrs), None)
}

type CreateVoteReq = Object<VoteAttributes>;

pub fn create_vote_req(attrs: VoteAttributes) -> CreateVoteReq {
    CreateVoteReq::build(Some("vote".to_string()), Some(attrs), None)
}