pub struct DisclosureSection {
pub list_accounts: Option<bool>,
pub list_account_ledgers: Option<bool>,
pub get_account_ledger: Option<bool>,
pub stats: Option<bool>,
}Expand description
Which bot.did.* routes this deployment has closed to a public,
unauthenticated caller.
Every field defaults to open (None, meaning “leave it public”) and only
Some(false) ever narrows — mirrors auth::Disclosure and
--close-disclosure. There is no spelling that widens past public,
because there is nothing wider than public to widen into.
Reload: hot. Nothing here is built into another structure at startup; a
caller may re-read this section and assign it directly onto a live
auth::Disclosure at any point.
Fields§
§list_accounts: Option<bool>bot.did.listAccounts.
list_account_ledgers: Option<bool>bot.did.listAccountLedgers.
get_account_ledger: Option<bool>bot.did.getAccountLedger.
stats: Option<bool>bot.did.stats.
Trait Implementations§
Source§impl Clone for DisclosureSection
impl Clone for DisclosureSection
Source§fn clone(&self) -> DisclosureSection
fn clone(&self) -> DisclosureSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisclosureSection
impl Debug for DisclosureSection
Source§impl Default for DisclosureSection
impl Default for DisclosureSection
Source§fn default() -> DisclosureSection
fn default() -> DisclosureSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DisclosureSection
impl<'de> Deserialize<'de> for DisclosureSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DisclosureSection
impl PartialEq for DisclosureSection
Source§fn eq(&self, other: &DisclosureSection) -> bool
fn eq(&self, other: &DisclosureSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DisclosureSection
impl Serialize for DisclosureSection
impl Eq for DisclosureSection
impl StructuralPartialEq for DisclosureSection
Auto Trait Implementations§
impl Freeze for DisclosureSection
impl RefUnwindSafe for DisclosureSection
impl Send for DisclosureSection
impl Sync for DisclosureSection
impl Unpin for DisclosureSection
impl UnsafeUnpin for DisclosureSection
impl UnwindSafe for DisclosureSection
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