[][src]Struct domo_pitchfork::pitchfork::ActivitiesRequestBuilder

pub struct ActivitiesRequestBuilder<'t, T: 't> where
    T: DeserializeOwned
{ pub auth: &'t str, pub method: Method, pub url: String, pub resp_t: PhantomData<*const T>, pub body: Option<String>, }

Request Builder for all Activity Log API interactions

Fields

auth: &'t strmethod: Methodurl: Stringresp_t: PhantomData<*const T>body: Option<String>

Methods

impl<'t> ActivitiesRequestBuilder<'t, ActivityLogEntry>[src]

pub fn search(
    self,
    query: ActivityLogSearchQuery
) -> Result<Vec<ActivityLogEntry>, PitchforkError>
[src]

Returns a list of Domo activity log entries that meet the search criteria.

Example

use domo_pitchfork::pitchfork::DomoPitchfork;
let domo = DomoPitchfork::with_token("token");
// Search for the first 1000 log entries for a user
// starting from 16 Apr 2019 8:35 PDT
let query = ActivityLogSearchQuery {
    user_id: Some(1_704_739_518),
    start: 1_555_428_851_882, // 16 Apr 2019 8:35 PDT
    end: None,
    limit: Some(1000), // Max per query is 1000.
    offset: None, // defaults to 0
};
let list = domo.audit().search(query)?;
list.iter().map(|s| println!("event text: {}", s.event_text));

Trait Implementations

impl<'t, T> BaseRequest for ActivitiesRequestBuilder<'t, T> where
    T: DeserializeOwned
[src]

impl<'t, T> DomoRequest<T> for ActivitiesRequestBuilder<'t, T> where
    T: DeserializeOwned
[src]

impl<'t, T> From<DomoRequestBuilder<'t, T>> for ActivitiesRequestBuilder<'t, T> where
    T: DeserializeOwned
[src]

Auto Trait Implementations

impl<'t, T> !Send for ActivitiesRequestBuilder<'t, T>

impl<'t, T> Unpin for ActivitiesRequestBuilder<'t, T>

impl<'t, T> !Sync for ActivitiesRequestBuilder<'t, T>

impl<'t, T> UnwindSafe for ActivitiesRequestBuilder<'t, T> where
    T: RefUnwindSafe

impl<'t, T> RefUnwindSafe for ActivitiesRequestBuilder<'t, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

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

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