MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus / parse

Method parse

packages/fullstack-macro/src/lib.rs:1159–1173  ·  view source on GitHub ↗
(input: ParseStream)

Source from the content-addressed store, hash-verified

1157struct Security(Vec<(LitStr, StrArray)>);
1158impl Parse for Security {
1159 fn parse(input: ParseStream) -> syn::Result<Self> {
1160 let inner;
1161 braced!(inner in input);
1162
1163 let mut arr = Vec::new();
1164 while !inner.is_empty() {
1165 let scheme = inner.parse::<LitStr>()?;
1166 let _ = inner.parse::<Token![:]>()?;
1167 let scopes = inner.parse::<StrArray>()?;
1168 let _ = inner.parse::<Token![,]>().ok();
1169 arr.push((scheme, scopes));
1170 }
1171
1172 Ok(Self(arr))
1173 }
1174}
1175
1176impl std::fmt::Display for Security {

Callers 4

fetch_innerMethod · 0.45
send_js_valueMethod · 0.45
into_responseMethod · 0.45
apply_base_pathFunction · 0.45

Calls 15

OkFunction · 0.85
ErrFunction · 0.85
PostFunction · 0.85
type_from_identFunction · 0.85
ListFunction · 0.85
thenMethod · 0.80
is_someMethod · 0.80
is_emptyMethod · 0.45
okMethod · 0.45
pushMethod · 0.45
as_strMethod · 0.45
spanMethod · 0.45

Tested by

no test coverage detected