Skip to content

Commit

Permalink
....
Browse files Browse the repository at this point in the history
  • Loading branch information
ddd-mtl committed Mar 19, 2024
1 parent 37eb848 commit bc3de21
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@ pub fn link_input_full(


///
pub fn link_input(base: AnyLinkableHash, link_type: LinkTypeFilter) -> GetLinksInput {
GetLinksInput {
base_address: base,
link_type,
get_options: GetOptions::network(),
tag_prefix: None,
after: None,
before: None,
author: None,
pub fn link_input(
base_address: impl Into<AnyLinkableHash>,
link_type: impl LinkTypeFilterExt,
tag: Option<LinkTag>) -> GetLinksInput {
let mut input = GetLinksInputBuilder::try_new(base_address, link_type).unwrap();
if let Some(taggy) = tag {
input = input.tag_prefix(taggy);
}
input.build()
}


Expand Down

0 comments on commit bc3de21

Please sign in to comment.