pub async fn send_friend_request(&self, username: &str) -> Result<SingleRelationshipResponse> {
        Ok(self
            .client_user_session_auth_type()
            .put(ep!(self, "/users/{}/friend" username))
            .send()
            .await?
            .error_for_status()?
            .json::<SingleRelationshipResponse>()
            .await?)
    }
/// Sends or accepts a friend request to / from the user with given username
Sends or accepts a friend request to / from the user with given username
Sends or accepts a friend request to / from the user with given username
pub async fn send_friend_request(&self, username: &str) -> Result<SingleRelationshipResponse> {
        Ok(self
            .client_user_session_auth_type()
            .put(ep!(self, "/users/{}/friend" username))
            .send()
            .await?
            .error_for_status()?
            .json::<SingleRelationshipResponse>()
            .await?)
    }
pub async fn send_friend_request ( & self , username : & str ) -> Result < SingleRelationshipResponse > { Ok ( self . client_user_session_auth_type ( ) . put ( ep ! ( self " " username ) ) . send ( ) . await ? . error_for_status ( ) ? . json :: < SingleRelationshipResponse > ( ) . await ? ) }
Sends or accepts a friend request to / from the user with given username
Sends or accepts a friend request to / from the user with given username
&self
username
&str
&self
username
&str