MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / build

Method build

atomic-identity/src/delegation.rs:359–372  ·  view source on GitHub ↗

Build the delegation scope.

(mut self)

Source from the content-addressed store, hash-verified

357
358 /// Build the delegation scope.
359 pub fn build(mut self) -> DelegationScope {
360 // Ensure at least read permission
361 if self.permissions.is_empty() {
362 self.permissions.push(DelegationPermission::Read);
363 }
364
365 DelegationScope {
366 permissions: self.permissions,
367 repository_patterns: self.repository_patterns,
368 view_patterns: self.view_patterns,
369 max_changes: self.max_changes,
370 description: self.description,
371 }
372 }
373}
374
375impl Default for DelegationScopeBuilder {

Calls 2

is_emptyMethod · 0.45
pushMethod · 0.45