pub struct View {
pub kind: ViewKind,
pub schema: PluginSchema,
pub hash: String,
pub activations: BTreeMap<String, PluginSchema>,
}Expand description
The hub as one caller may see it (AUTH-4).
Fields§
§kind: ViewKindAnonymous (the door only) or the caller’s own.
schema: PluginSchemaThe hub’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 hub’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 hub’s hashes answer in this view.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more