/// Get the profile data for a given user ID..
Get the profile data for a given user ID
Get the profile data for a given user ID
pub async fn for_user(
        target: uuid,
        viewer: Option<uuid>,
    ) -> Result<ResponseData, TelescopeError> {
        // Convert viewer to a vec with one or zero user IDs in it.
        let viewer = viewer.map(|v| vec![v]).unwrap_or(Vec::new());
        // Send the query and await the response.
        send_query::<Self>(Variables {
            target,
            viewer,
            now: Utc::today().naive_utc(),
        })
        .await
    }
pub async fn for_user ( target : uuid , viewer : Option < uuid > , ) -> Result < ResponseData , TelescopeError > { // Convert viewer to a vec with one or zero user IDs in it. let viewer = viewer . map ( | v | vec ! [ v ] ) . unwrap_or ( Vec :: new ( ) ) ; // Send the query and await the response. send_query :: < Self > ( Variables { target , viewer , now : Utc :: today ( ) . naive_utc ( ) , } ) . await }
Get the profile data for a given user ID..
Get the profile data for a given user ID ..
target
uuid
viewer
Option<uuid>