Struct InsightsApiClient

Source
pub struct InsightsApiClient { /* private fields */ }

Implementations§

Source§

impl InsightsApiClient

Source

pub fn delete_insights(&self) -> RequestHandler

Delete navigation property insights for users

Source

pub fn get_insights(&self) -> RequestHandler

Get insights from users

Source

pub fn update_insights<B: BodyExt>(&self, body: B) -> RequestHandler

Update the navigation property insights in users

Source

pub fn create_shared<B: BodyExt>(&self, body: B) -> RequestHandler

Create new navigation property to shared for users

Source

pub fn list_shared(&self) -> RequestHandler

Get shared from users

Source

pub fn get_shared_count(&self) -> RequestHandler

Get the number of the resource

Source

pub fn delete_shared( &self, shared_insight_id: impl AsRef<str>, ) -> RequestHandler

Delete navigation property shared for users

Source

pub fn get_shared(&self, shared_insight_id: impl AsRef<str>) -> RequestHandler

Get shared from users

Source

pub fn update_shared<B: BodyExt>( &self, shared_insight_id: impl AsRef<str>, body: B, ) -> RequestHandler

Update the navigation property shared in users

Source

pub fn get_last_shared_method( &self, shared_insight_id: impl AsRef<str>, ) -> RequestHandler

Get lastSharedMethod from users

Source

pub fn get_shared_resource( &self, shared_insight_id: impl AsRef<str>, ) -> RequestHandler

Get resource from users

Create new navigation property to trending for users

Get trending from users

Get the number of the resource

Delete navigation property trending for users

Get trending from users

Update the navigation property trending in users

Get resource from users

Source

pub fn create_used<B: BodyExt>(&self, body: B) -> RequestHandler

Create new navigation property to used for users

Source

pub fn list_used(&self) -> RequestHandler

List used

Source

pub fn get_used_count(&self) -> RequestHandler

Get the number of the resource

Source

pub fn delete_used(&self, used_insight_id: impl AsRef<str>) -> RequestHandler

Delete navigation property used for users

Source

pub fn get_used(&self, used_insight_id: impl AsRef<str>) -> RequestHandler

Get used from users

Source

pub fn update_used<B: BodyExt>( &self, used_insight_id: impl AsRef<str>, body: B, ) -> RequestHandler

Update the navigation property used in users

Source

pub fn get_used_resource( &self, used_insight_id: impl AsRef<str>, ) -> RequestHandler

Get resource from users

Trait Implementations§

Source§

impl ApiClientImpl for InsightsApiClient

Source§

fn url(&self) -> Url

Source§

fn render_path<S: AsRef<str>>( &self, path: S, path_params_map: &Value, ) -> GraphResult<String>

Source§

fn build_url<S>( &self, path: S, path_params_map: &Value, ) -> Result<Url, GraphFailure>
where S: AsRef<str>,

Source§

impl Debug for InsightsApiClient

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ODataQuery for InsightsApiClient

Source§

fn append_query_pair<KV: AsRef<str>>(self, key: KV, value: KV) -> Self

Source§

fn count<S>(self, value: S) -> Self
where S: AsRef<str>,

Retrieves the total count of matching resources. See the docs
Source§

fn select(self, value: &[&str]) -> Self

Filters properties (columns). See the docs
Source§

fn expand(self, value: &[&str]) -> Self

Retrieves related resources. See the docs
Source§

fn filter(self, value: &[&str]) -> Self

Filters results (rows). See the docs
Source§

fn order_by(self, value: &[&str]) -> Self

Orders results. See the docs
Source§

fn search<S>(self, value: S) -> Self
where S: AsRef<str>,

Returns results based on search criteria. See the docs
Source§

fn format<S>(self, value: S) -> Self
where S: AsRef<str>,

Returns the results in the specified media format. See the docs
Source§

fn skip<S>(self, value: S) -> Self
where S: AsRef<str>,

Indexes into a result set. Also used by some APIs to implement paging and can be used together with $top to manually page results. See the docs
Source§

fn skip_token<S>(self, value: S) -> Self
where S: AsRef<str>,

Retrieves the next page of results from result sets that span multiple pages. (Some APIs use $skip instead.) See the docs
Source§

fn delta_token<S>(self, value: S) -> Self
where S: AsRef<str>,

Retrieves the next page of results from result sets that span multiple pages. (Some APIs use $skip instead.) See the docs
Source§

fn top<S>(self, value: S) -> Self
where S: AsRef<str>,

Sets the page size of results. See the docs
Source§

impl ResourceIdentifier for InsightsApiClient

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more