MCPcopy Create free account
hub / github.com/cosdata/cosdata / role_assignment

Function role_assignment

org/src/cosql.rs:241–249  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

239}
240
241fn role_assignment(input: &str) -> IResult<&str, RoleAssignment> {
242 map(
243 tuple((ws(identifier), ws(char(':')), ws(char('$')), ws(identifier))),
244 |(role, _, _, entity)| RoleAssignment {
245 role: role.to_string(),
246 entity: entity.to_string(),
247 },
248 )(input)
249}
250
251fn relationship_insertion(input: &str) -> IResult<&str, RelationshipInsertion> {
252 map(

Callers

nothing calls this directly

Calls 1

wsFunction · 0.70

Tested by

no test coverage detected