#[non_exhaustive]pub struct InboxPolicySetInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub inbox: String,
pub poster: String,
pub kind: Option<String>,
pub mode: InboxPolicySetInputMode,
pub require_evidence: Option<Vec<String>>,
pub remove: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§agent: Option<String>§inbox: String§poster: String§kind: Option<String>§mode: InboxPolicySetInputMode§require_evidence: Option<Vec<String>>§remove: Option<bool>Implementations§
Source§impl InboxPolicySetInput
impl InboxPolicySetInput
pub fn new( inbox: impl Into<String>, poster: impl Into<String>, mode: InboxPolicySetInputMode, ) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn kind(self, kind: impl Into<String>) -> Self
pub fn require_evidence( self, require_evidence: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn remove(self, remove: bool) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<InboxPolicySetOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for InboxPolicySetInput
impl Clone for InboxPolicySetInput
Source§impl Debug for InboxPolicySetInput
impl Debug for InboxPolicySetInput
Source§impl<'de> Deserialize<'de> for InboxPolicySetInput
impl<'de> Deserialize<'de> for InboxPolicySetInput
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 InboxPolicySetInput
impl PartialEq for InboxPolicySetInput
Source§impl Serialize for InboxPolicySetInput
impl Serialize for InboxPolicySetInput
impl StructuralPartialEq for InboxPolicySetInput
Auto Trait Implementations§
impl Forget for InboxPolicySetInput
impl Freeze for InboxPolicySetInput
impl Move for InboxPolicySetInput
impl RefUnwindSafe for InboxPolicySetInput
impl Send for InboxPolicySetInput
impl Sync for InboxPolicySetInput
impl Unpin for InboxPolicySetInput
impl UnsafeUnpin for InboxPolicySetInput
impl UnwindSafe for InboxPolicySetInput
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