MCPcopy Create free account
hub / github.com/hashintel/hash / is_web

Method is_web

libs/@local/graph/postgres-store/src/permissions/mod.rs:416–419  ·  view source on GitHub ↗

Checks if a web with the given ID exists. # Errors - [`StoreError`] if a database error occurs [`StoreError`]: PrincipalError::StoreError

(&self, web_id: impl Into<Uuid>)

Source from the content-addressed store, hash-verified

414 ///
415 /// [`StoreError`]: PrincipalError::StoreError
416 pub async fn is_web(&self, web_id: impl Into<Uuid>) -> Result<bool, Report<PrincipalError>> {
417 self.is_principal(ActorGroupId::Web(WebId::new(web_id)))
418 .await
419 }
420
421 /// Deletes a web from the system.
422 ///

Callers 1

seed_dbFunction · 0.80

Calls 2

is_principalMethod · 0.80
WebClass · 0.50

Tested by

no test coverage detected