[−][src]Function egg_mode::user::update_follow
pub async fn update_follow<'_, T>(
acct: T,
notifications: Option<bool>,
retweets: Option<bool>,
token: &'_ Token
) -> Result<Response<Relationship>> where
T: Into<UserID>,
Update notification settings and reweet visibility for the given user.
Calling this for an account the authenticated user does not already follow will not cause them
to follow that user. It will return an error if you pass Some(true)
for notifications
or
Some(false)
for retweets
. Any other combination of arguments will return a Relationship
as
if you had called relation
between the authenticated user and the given user.