[−][src]Trait libimagentryurl::linker::UrlLinker
Required methods
fn get_urls<'a>(&self, store: &'a Store) -> Result<UrlIter<'a>>
fn set_urls(&mut self, store: &Store, links: Vec<Url>) -> Result<Vec<StoreId>>
fn add_url(&mut self, store: &Store, link: Url) -> Result<Vec<StoreId>>
fn remove_url(&mut self, store: &Store, link: Url) -> Result<Vec<StoreId>>
Implementations on Foreign Types
impl UrlLinker for Entry
[src]
fn get_urls<'a>(&self, store: &'a Store) -> Result<UrlIter<'a>>
[src]
Get URLs from the Entry
Notice
(Also see documentation of UrlLinker::set_urls()
)
This fetches all Links (as in libimagentrylink
for the Entry and filters them by entries
which contain an URL.
Return Value
Iterator over URLs
fn set_urls(&mut self, store: &Store, links: Vec<Url>) -> Result<Vec<StoreId>>
[src]
Set URLs for the Entry
Notice
This does not actually add each URL in this entry, but retrieves (as in
Store::retrieve()
) one entry for each URL and links (as in libimagentrylink
) this entry
to the retrieved ones.
Return Value
Returns the StoreIds which were newly created for the new urls, if there are more urls than before. If there are less urls than before, an empty vec![] is returned.
fn add_url(&mut self, store: &Store, link: Url) -> Result<Vec<StoreId>>
[src]
Add an URL to the entry
Notice
(Also see documentation of UrlLinker::set_urls()
)
Return Value
(See UrlLinker::set_urls())
fn remove_url(&mut self, store: &Store, link: Url) -> Result<Vec<StoreId>>
[src]
Remove an URL from the entry
Notice
(Also see documentation of UrlLinker::set_urls()
)
Return Value
(See UrlLinker::set_urls())