pub struct FurtherLinksResource<'a> { /* private fields */ }Expand description
client.further_links()
Implementations§
Source§impl<'a> FurtherLinksResource<'a>
impl<'a> FurtherLinksResource<'a>
Sourcepub fn create(&self, body: &FurtherLinkCreate) -> Result<FurtherLink>
pub fn create(&self, body: &FurtherLinkCreate) -> Result<FurtherLink>
Create further link
POST /furtherlinks
Create a new further link.
§Example
let body = models::FurtherLinkCreate {
description: Some("Our church's NextCloud".into()),
image_url: Some("https://example.org".into()),
name: "NextCloud".into(),
sort_key: 1.5,
url: "https://example.org".into(),
..Default::default()
};
let result = client.further_links().create(&body)?;
println!("{}", result.name);Sourcepub fn get(&self, further_link_id: impl Display) -> Result<FurtherLink>
pub fn get(&self, further_link_id: impl Display) -> Result<FurtherLink>
Get further link.
GET /furtherlinks/{furtherLinkId}
Get the specified further link.
§Example
let further_link = client.further_links().get(1.5)?;
println!("{}", further_link.name);Sourcepub fn list(&self) -> Result<Vec<FurtherLink>>
pub fn list(&self) -> Result<Vec<FurtherLink>>
Get further links
GET /furtherlinks
Get all further links.
§Example
for further_link in client.further_links().list()? {
println!("{}", further_link.name);
}Sourcepub fn update(
&self,
further_link_id: impl Display,
body: &FurtherLinkCreate,
) -> Result<FurtherLink>
pub fn update( &self, further_link_id: impl Display, body: &FurtherLinkCreate, ) -> Result<FurtherLink>
Update further link
PUT /furtherlinks/{furtherLinkId}
Update the specified further link.
§Example
let body = models::FurtherLinkCreate {
description: Some("Our church's NextCloud".into()),
image_url: Some("https://example.org".into()),
name: "NextCloud".into(),
sort_key: 1.5,
url: "https://example.org".into(),
..Default::default()
};
let result = client.further_links().update(1.5, &body)?;
println!("{}", result.name);Trait Implementations§
Source§impl<'a> Clone for FurtherLinksResource<'a>
impl<'a> Clone for FurtherLinksResource<'a>
impl<'a> Copy for FurtherLinksResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FurtherLinksResource<'a>
impl<'a> !UnwindSafe for FurtherLinksResource<'a>
impl<'a> Forget for FurtherLinksResource<'a>
impl<'a> Freeze for FurtherLinksResource<'a>
impl<'a> Move for FurtherLinksResource<'a>
impl<'a> Send for FurtherLinksResource<'a>
impl<'a> Sync for FurtherLinksResource<'a>
impl<'a> Unpin for FurtherLinksResource<'a>
impl<'a> UnsafeUnpin for FurtherLinksResource<'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