pub struct PlatformMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on platform resources.
It is not used directly, but through the Ideahub hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_ideahub1_beta as ideahub1_beta;
use ideahub1_beta::{Ideahub, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http1()
.build()
);
let mut hub = Ideahub::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `properties_idea_activities_create(...)`, `properties_idea_states_patch(...)`, `properties_ideas_list(...)`, `properties_locales_list(...)` and `properties_topic_states_patch(...)`
// to build up your call.
let rb = hub.platforms();Implementations§
Source§impl<'a, C> PlatformMethods<'a, C>
impl<'a, C> PlatformMethods<'a, C>
Sourcepub fn properties_idea_activities_create(
&self,
request: GoogleSearchIdeahubV1betaIdeaActivity,
parent: &str,
) -> PlatformPropertyIdeaActivityCreateCall<'a, C>
pub fn properties_idea_activities_create( &self, request: GoogleSearchIdeahubV1betaIdeaActivity, parent: &str, ) -> PlatformPropertyIdeaActivityCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates an idea activity entry.
§Arguments
request- No description provided.parent- Required. The parent resource where this idea activity will be created. Format: platforms/{platform}/property/{property}
Sourcepub fn properties_idea_states_patch(
&self,
request: GoogleSearchIdeahubV1betaIdeaState,
name: &str,
) -> PlatformPropertyIdeaStatePatchCall<'a, C>
pub fn properties_idea_states_patch( &self, request: GoogleSearchIdeahubV1betaIdeaState, name: &str, ) -> PlatformPropertyIdeaStatePatchCall<'a, C>
Create a builder to help you perform the following task:
Update an idea state resource.
§Arguments
request- No description provided.name- Unique identifier for the idea state. Format: platforms/{platform}/properties/{property}/ideaStates/{idea_state}
Sourcepub fn properties_ideas_list(
&self,
parent: &str,
) -> PlatformPropertyIdeaListCall<'a, C>
pub fn properties_ideas_list( &self, parent: &str, ) -> PlatformPropertyIdeaListCall<'a, C>
Create a builder to help you perform the following task:
List ideas for a given Creator and filter and sort options.
§Arguments
parent- Required. If defined, specifies the creator for which to filter by. Format: publishers/{publisher}/properties/{property}
Sourcepub fn properties_locales_list(
&self,
parent: &str,
) -> PlatformPropertyLocaleListCall<'a, C>
pub fn properties_locales_list( &self, parent: &str, ) -> PlatformPropertyLocaleListCall<'a, C>
Create a builder to help you perform the following task:
Returns which locales ideas are available in for a given Creator.
§Arguments
parent- Required. The web property to check idea availability for Format: platforms/{platform}/property/{property}
Sourcepub fn properties_topic_states_patch(
&self,
request: GoogleSearchIdeahubV1betaTopicState,
name: &str,
) -> PlatformPropertyTopicStatePatchCall<'a, C>
pub fn properties_topic_states_patch( &self, request: GoogleSearchIdeahubV1betaTopicState, name: &str, ) -> PlatformPropertyTopicStatePatchCall<'a, C>
Create a builder to help you perform the following task:
Update a topic state resource.
§Arguments
request- No description provided.name- Unique identifier for the topic state. Format: platforms/{platform}/properties/{property}/topicStates/{topic_state}
Trait Implementations§
impl<'a, C> MethodsBuilder for PlatformMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for PlatformMethods<'a, C>
impl<'a, C> !RefUnwindSafe for PlatformMethods<'a, C>
impl<'a, C> Send for PlatformMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for PlatformMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for PlatformMethods<'a, C>
impl<'a, C> !UnwindSafe for PlatformMethods<'a, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more