pub struct View {
pub kind: ViewKind,
pub schema: PluginSchema,
pub hash: String,
pub activations: BTreeMap<String, PluginSchema>,
}Expand description
The service as one caller may see it (AUTH-4).
Fields§
§kind: ViewKindAnonymous (the door only) or the caller’s own.
schema: PluginSchemaThe service’s own schema in this view: its methods, and a child summary
for each activation the view keeps, carrying that activation’s view
hash. hash is the view’s hash.
hash: StringThe view’s hash: deterministic over what the view shows.
activations: BTreeMap<String, PluginSchema>Each activation the view keeps, by namespace, as its
<ns>.schema answers in this view.
Implementations§
Source§impl View
impl View
Sourcepub fn schema_of(&self, ns: &str) -> Option<&PluginSchema>
pub fn schema_of(&self, ns: &str) -> Option<&PluginSchema>
The schema <ns>.schema answers in this view: the service’s own for its
namespace, else the activation’s — None when the view does not
show it.
Sourcepub fn public_methods(&self) -> Vec<String>
pub fn public_methods(&self) -> Vec<String>
The grants of the public methods this view shows, activation by
activation (in namespace order), each in declaration order —
_info’s auth.methods for an anonymous caller.
Sourcepub fn hashes(&self) -> PluginHashes
pub fn hashes(&self) -> PluginHashes
The service’s hashes answer in this view.