pub struct P2pAdvertiserRelationsRequest {
pub add_blocked: Option<Vec<f64>>,
pub add_favourites: Option<Vec<f64>>,
pub loginid: Option<String>,
pub p2p_advertiser_relations: i64,
pub passthrough: Option<Value>,
pub remove_blocked: Option<Vec<f64>>,
pub remove_favourites: Option<Vec<f64>>,
pub req_id: Option<i64>,
}
Expand description
Updates and returns favourite and blocked advertisers of the current user.
Fields§
§add_blocked: Option<Vec<f64>>
IDs of advertisers to block.\n
add_favourites: Option<Vec<f64>>
IDs of advertisers to add as favourites.\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
p2p_advertiser_relations: i64
Must be 1\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
remove_blocked: Option<Vec<f64>>
IDs of advertisers to remove from blocked.\n
remove_favourites: Option<Vec<f64>>
IDs of advertisers to remove from favourites.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
Trait Implementations§
Source§impl Clone for P2pAdvertiserRelationsRequest
impl Clone for P2pAdvertiserRelationsRequest
Source§fn clone(&self) -> P2pAdvertiserRelationsRequest
fn clone(&self) -> P2pAdvertiserRelationsRequest
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<'de> Deserialize<'de> for P2pAdvertiserRelationsRequest
impl<'de> Deserialize<'de> for P2pAdvertiserRelationsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for P2pAdvertiserRelationsRequest
impl RefUnwindSafe for P2pAdvertiserRelationsRequest
impl Send for P2pAdvertiserRelationsRequest
impl Sync for P2pAdvertiserRelationsRequest
impl Unpin for P2pAdvertiserRelationsRequest
impl UnwindSafe for P2pAdvertiserRelationsRequest
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