pub struct Links<'a>(/* private fields */);Expand description
Short links over a Runlight.
Implementations§
Source§impl Links<'_>
impl Links<'_>
Sourcepub async fn create(
&self,
site: &str,
input: &LinkInput,
) -> Result<LinkRow, Error>
pub async fn create( &self, site: &str, input: &LinkInput, ) -> Result<LinkRow, Error>
Makes a link.
Sourcepub async fn update(
&self,
id: &str,
input: &LinkPatch,
) -> Result<LinkRow, Error>
pub async fn update( &self, id: &str, input: &LinkPatch, ) -> Result<LinkRow, Error>
Changes a link.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Links<'a>
impl<'a> !UnwindSafe for Links<'a>
impl<'a> Freeze for Links<'a>
impl<'a> Send for Links<'a>
impl<'a> Sync for Links<'a>
impl<'a> Unpin for Links<'a>
impl<'a> UnsafeUnpin for Links<'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