pub struct ExternalPostsResource<'a> { /* private fields */ }Expand description
client.external_posts()
Implementations§
Source§impl<'a> ExternalPostsResource<'a>
impl<'a> ExternalPostsResource<'a>
pub fn instances(&self) -> ExternalPostsInstancesResource<'a>
Sourcepub fn list(&self) -> Result<Vec<Post>>
pub fn list(&self) -> Result<Vec<Post>>
GET /externalposts
Get a list of external posts. The posts are sorted by the createdDate field descending.
Use Self::list_with to pass query parameters.
§Example
for external_post in client.external_posts().list()? {
println!("{}", external_post.title);
}Sourcepub fn list_with(&self, query: &GetExternalpostsQuery) -> Result<Vec<Post>>
pub fn list_with(&self, query: &GetExternalpostsQuery) -> Result<Vec<Post>>
GET /externalposts
Like Self::list, with query parameters.
Get a list of external posts. The posts are sorted by the createdDate field descending.
Trait Implementations§
Source§impl<'a> Clone for ExternalPostsResource<'a>
impl<'a> Clone for ExternalPostsResource<'a>
impl<'a> Copy for ExternalPostsResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExternalPostsResource<'a>
impl<'a> !UnwindSafe for ExternalPostsResource<'a>
impl<'a> Freeze for ExternalPostsResource<'a>
impl<'a> Send for ExternalPostsResource<'a>
impl<'a> Sync for ExternalPostsResource<'a>
impl<'a> Unpin for ExternalPostsResource<'a>
impl<'a> UnsafeUnpin for ExternalPostsResource<'a>
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