Skip to main content

OrganizationPlugin

Struct OrganizationPlugin 

Source
pub struct OrganizationPlugin { /* private fields */ }
Expand description

Organization plugin for multi-tenancy support

Implementations§

Source§

impl OrganizationPlugin

Source

pub fn add_member_endpoint( body: &AddOrganizationMemberRequest, ) -> AuthResult<ServerEndpoint<BasicMemberResponse>>

Privileged server-only admission through actual installed hooks.

§Errors

Returns an error if serialization fails.

Source

pub fn remove_member_endpoint( body: &RemoveMemberRequest, ) -> AuthResult<ServerEndpoint<RemovedMemberResponse<OrganizationMemberRemovalSnapshot>>>

Remove a member using genuine verified credentials and installed hooks.

§Errors

Returns an error if serialization fails.

Source

pub fn create_endpoint( body: &CreateOrganizationRequest, user_id: Option<&str>, ) -> AuthResult<ServerEndpoint<CreateOrganizationResponse<CreatedOrganizationResponse, BasicMemberResponse>>>

Create through logical dispatch; an explicit user ID is a trusted server option.

§Errors

Returns an error if serialization fails.

Source

pub fn delete_endpoint( body: &DeleteOrganizationRequest, ) -> AuthResult<ServerEndpoint<Option<OrganizationResponse>>>

Delete through installed hooks and scoped organization authority.

§Errors

Returns an error if serialization fails.

Source§

impl OrganizationPlugin

Source

pub fn list_organizations_endpoint() -> ServerEndpoint<Vec<OrganizationResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn update_endpoint( input: &UpdateOrganizationRequest, ) -> AuthResult<ServerEndpoint<Option<CreatedOrganizationResponse>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn get_organization_endpoint( input: &GetOrganizationQuery, ) -> AuthResult<ServerEndpoint<Option<OrganizationResponse>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn get_full_organization_endpoint( input: &GetFullOrganizationQuery, ) -> AuthResult<ServerEndpoint<Option<FullOrganizationResponse<OrganizationResponse, InvitationView>>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn check_slug_endpoint( input: &CheckSlugRequest, ) -> AuthResult<ServerEndpoint<CheckSlugResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn set_active_endpoint( input: &SetActiveOrganizationRequest, ) -> AuthResult<ServerEndpoint<Option<OrganizationResponse>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn leave_endpoint( input: &LeaveOrganizationRequest, ) -> AuthResult<ServerEndpoint<SuccessResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn create_invitation_endpoint( input: &InviteMemberRequest, ) -> AuthResult<ServerEndpoint<InvitationView>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn invite_member_endpoint( input: &InviteMemberRequest, ) -> AuthResult<ServerEndpoint<InvitationView>>

Construct an invitation through the canonical server API.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn get_invitation_endpoint( input: &GetInvitationQuery, ) -> AuthResult<ServerEndpoint<GetInvitationResponse<InvitationView>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn list_invitations_endpoint( input: &ListInvitationsQuery, ) -> AuthResult<ServerEndpoint<Vec<InvitationView>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn list_user_invitations_endpoint( input: &ListUserInvitationsQuery, ) -> AuthResult<ServerEndpoint<Vec<UserInvitationResponse<InvitationView>>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn accept_invitation_endpoint( input: &AcceptInvitationRequest, ) -> AuthResult<ServerEndpoint<AcceptInvitationResponse<InvitationView, BasicMemberResponse>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn reject_invitation_endpoint( input: &RejectInvitationRequest, ) -> AuthResult<ServerEndpoint<AcceptInvitationResponse<InvitationView, Option<BasicMemberResponse>>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn cancel_invitation_endpoint( input: &CancelInvitationRequest, ) -> AuthResult<ServerEndpoint<InvitationView>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn get_active_member_endpoint() -> ServerEndpoint<MemberResponse>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn get_active_member_role_endpoint( input: &GetActiveMemberRoleQuery, ) -> AuthResult<ServerEndpoint<GetActiveMemberRoleResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn list_members_endpoint( input: &ListMembersQuery, ) -> AuthResult<ServerEndpoint<ListMembersResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn update_member_role_endpoint( input: &UpdateMemberRoleRequest, ) -> AuthResult<ServerEndpoint<BasicMemberResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn has_permission_endpoint( input: &HasPermissionRequest, ) -> AuthResult<ServerEndpoint<HasPermissionResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn create_team_endpoint( input: &CreateTeamRequest, ) -> AuthResult<ServerEndpoint<Team>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn update_team_endpoint( input: &UpdateTeamRequest, ) -> AuthResult<ServerEndpoint<Team>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn remove_team_endpoint( input: &RemoveTeamRequest, ) -> AuthResult<ServerEndpoint<MessageResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn set_active_team_endpoint( input: &SetActiveTeamRequest, ) -> AuthResult<ServerEndpoint<Option<Team>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn add_team_member_endpoint( input: &TeamMemberRequest, ) -> AuthResult<ServerEndpoint<TeamMember>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn remove_team_member_endpoint( input: &TeamMemberRequest, ) -> AuthResult<ServerEndpoint<MessageResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn list_organization_teams_endpoint( input: &TeamQuery, ) -> AuthResult<ServerEndpoint<Vec<Team>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn list_teams_endpoint( input: &TeamQuery, ) -> AuthResult<ServerEndpoint<Vec<Team>>>

Construct a team listing through the canonical server API.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn list_user_teams_endpoint( input: &TeamQuery, ) -> AuthResult<ServerEndpoint<Vec<Team>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn list_team_members_endpoint( input: &TeamQuery, ) -> AuthResult<ServerEndpoint<Vec<TeamMember>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn create_org_role_endpoint( input: &CreateRoleRequest, ) -> AuthResult<ServerEndpoint<CreateRoleResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn create_role_endpoint( input: &CreateRoleRequest, ) -> AuthResult<ServerEndpoint<CreateRoleResponse>>

Construct role creation through the canonical server API.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn update_org_role_endpoint( input: &UpdateRoleRequest, ) -> AuthResult<ServerEndpoint<UpdateRoleResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn update_role_endpoint( input: &UpdateRoleRequest, ) -> AuthResult<ServerEndpoint<UpdateRoleResponse>>

Construct a role update through the canonical server API.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn delete_org_role_endpoint( input: &RoleQuery, ) -> AuthResult<ServerEndpoint<SuccessResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn delete_role_endpoint( input: &RoleQuery, ) -> AuthResult<ServerEndpoint<SuccessResponse>>

Construct role deletion through the canonical server API.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn get_org_role_endpoint( input: &RoleQuery, ) -> AuthResult<ServerEndpoint<RoleResponse>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn get_role_endpoint( input: &RoleQuery, ) -> AuthResult<ServerEndpoint<RoleResponse>>

Construct a role read through the canonical server API.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn list_org_roles_endpoint( input: &RoleQuery, ) -> AuthResult<ServerEndpoint<Vec<RoleResponse>>>

Construct a typed native call through installed dispatch hooks.

§Errors

Returns a serialization error for input that cannot be represented.

Source

pub fn list_roles_endpoint( input: &RoleQuery, ) -> AuthResult<ServerEndpoint<Vec<RoleResponse>>>

Construct a role listing through the canonical server API.

§Errors

Returns a serialization error for input that cannot be represented.

Source§

impl OrganizationPlugin

Source

pub async fn list_user_invitations( &self, ctx: &AuthContext<impl AuthSchema>, email: &str, ) -> AuthResult<Vec<UserInvitationResponse<InvitationView>>>

List pending invitations for an email through a trusted server-side call.

This method accepts an application-authorized email without a session. The HTTP endpoint instead derives the email from a verified session and rejects client email selectors.

§Errors

Returns errors from input validation, permission checks, storage, or configured organization hooks.

Source§

impl OrganizationPlugin

Source

pub async fn create_team<S: AuthSchema>( &self, ctx: &AuthContext<S>, data: CreateTeam, ) -> AuthResult<Team>

Controlled server-side creation; the organization is explicit and no request principal is fabricated.

§Errors

Returns errors from input validation, permission checks, storage, or configured organization hooks.

Source

pub async fn create_team_with_headers<S: AuthSchema>( &self, ctx: &AuthContext<S>, headers: &HashMap<String, String>, data: CreateTeam, ) -> AuthResult<Team>

Create a team with the actual signed-cookie principal from supplied headers. This low-level server API enforces the same organization permissions as HTTP; builder-wide dispatch hooks and API-key session injection require normal dispatch.

§Errors

Returns an error if authentication, authorization, policy, hooks, or storage fail.

Source

pub async fn remove_team_with_headers<S: AuthSchema>( &self, ctx: &AuthContext<S>, headers: &HashMap<String, String>, organization_id: &str, team_id: &str, ) -> AuthResult<()>

Remove a team with the actual signed-cookie principal from supplied headers. Current active-team and organization permission checks also apply to server calls. This low-level helper does not execute builder-wide dispatch hooks.

§Errors

Returns an error if authentication, authorization, hooks, or storage fail.

Source

pub async fn remove_team<S: AuthSchema>( &self, ctx: &AuthContext<S>, organization_id: &str, team_id: &str, ) -> AuthResult<()>

§Errors

Returns errors from input validation, permission checks, storage, or configured organization hooks.

Source§

impl OrganizationPlugin

Source

pub fn new() -> Self

Source

pub fn with_config(config: OrganizationConfig) -> Self

Source

pub fn allow_user_to_create_organization(self, val: bool) -> Self

Source

pub fn organization_limit(self, val: f64) -> Self

Source

pub fn creator_role(self, val: impl Into<String>) -> Self

Source

pub fn invitation_expires_in(self, val: f64) -> Self

Source

pub fn cancel_pending_invitations_on_reinvite(self, val: bool) -> Self

Source

pub fn disable_organization_deletion(self, val: bool) -> Self

Source

pub fn require_email_verification_on_invitation(self, val: bool) -> Self

Source§

impl OrganizationPlugin

Source

pub async fn add_member_with_headers<S: AuthSchema>( &self, ctx: &AuthContext<S>, headers: &HashMap<String, String>, body: &AddOrganizationMemberRequest, ) -> AuthResult<BasicMemberResponse>

Trusted server-only member admission. Explicit organization and target IDs do not require a caller session; optional signed headers provide active organization fallback and authority for a functional team-limit callback. This helper never registers a public authentication route and does not run builder-wide dispatch hooks or API-key virtual-session injection.

§Errors

Returns an error if membership validation, permission checks, admission hooks, or persistence fail.

Source

pub async fn remove_member_with_headers<S: AuthSchema>( &self, ctx: &AuthContext<S>, headers: &HashMap<String, String>, body: &RemoveMemberRequest, ) -> AuthResult<RemovedMemberResponse<OrganizationMemberRemovalSnapshot>>

Remove through a real signed-cookie session supplied by the application. This low-level helper shares HTTP business logic but does not execute builder-wide before/after dispatch hooks or API-key session injection.

§Errors

Returns an error if membership authorization, removal hooks, or persistence fail.

Source

pub async fn delete_organization_with_headers<S: AuthSchema>( &self, ctx: &AuthContext<S>, headers: &HashMap<String, String>, body: &DeleteOrganizationRequest, ) -> AuthResult<Option<OrganizationResponse>>

Delete using an actual signed-cookie session from supplied headers, without manufacturing an HTTP request for lifecycle callbacks. This low-level plugin helper does not execute builder-wide before/after dispatch hooks; API-key-only session injection requires normal authenticated dispatch. None represents a missing organization after its membership was resolved.

§Errors

Returns an error if organization authorization, deletion hooks, or persistence fail.

Source

pub async fn create_organization_for_user<S: AuthSchema>( &self, ctx: &AuthContext<S>, user_id: &str, body: &CreateOrganizationRequest, ) -> AuthResult<CreateOrganizationResponse<CreatedOrganizationResponse, BasicMemberResponse>>

Trusted server operation. The supplied user ID is resolved from storage; HTTP creation always uses the authenticated principal instead. Like upstream’s server-only body.userId branch, this bypasses an allow-policy denial while still evaluating that policy and enforcing organization limits.

§Errors

Returns an error if creation policies, organization hooks, or persistence reject the operation.

Trait Implementations§

Source§

impl<S: AuthSchema> AuthPlugin<S> for OrganizationPlugin

Source§

fn static_openapi_metadata(&self) -> PluginOpenApiMetadata

Base declarations for documentation without an initialized auth instance.
Source§

fn openapi_metadata(&self, ctx: &AuthInitContext<S>) -> PluginOpenApiMetadata

Documentation annotations collected after all plugins initialize. Override this hook for custom endpoints and model field policies.
Source§

fn server_endpoints(&self) -> Vec<EndpointDefinition>

Trusted operations available through host dispatch, independently of HTTP visibility.
Source§

fn validate_endpoint( &self, call: &EndpointCall, _ctx: &AuthContext<S>, ) -> AuthResult<EndpointInput>

Validate actual input after all before-hook patches have been applied. Read more
Source§

fn on_endpoint<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, call: &'life1 EndpointCall, ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = AuthResult<EndpointResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Execute a registered operation with validated handler-phase context. Read more
Source§

fn name(&self) -> &'static str

Plugin name - should be unique
Source§

fn session_fields(&self) -> FieldConfigs

Session field policies contributed by this registered plugin.
Source§

fn on_init<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 mut AuthInitContext<S>, ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Called when the plugin is initialized
Source§

fn routes(&self) -> Vec<AuthRoute>

Routes that this plugin handles
Source§

fn on_request<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, req: &'life1 AuthRequest, ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = AuthResult<Option<AuthResponse>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Called for each request - return Some(response) to handle, None to pass through
Source§

fn rate_limits(&self) -> Vec<PluginRateLimit>

Ordered rate-limit policies supplied by this installed plugin.
Source§

fn endpoint_hooks(&self) -> Vec<&dyn EndpointHook<S>>

Installed logical-call hooks, in this plugin’s registration order.
Source§

fn allowed_media_types(&self, _route: &AuthRoute) -> Vec<&'static str>

Media types accepted before request hooks and endpoint dispatch. An empty list disables the media restriction for an application-owned endpoint.
Source§

fn user_fields(&self) -> IndexMap<String, FieldConfig>

Source§

fn account_fields(&self) -> IndexMap<String, FieldConfig>

Source§

fn on_http_request<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _req: &'life1 AuthRequest, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<Option<AuthResponse>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Inspect the original physical HTTP request before routing, body parsing, origin validation and endpoint hooks. Disabled paths and transport/rate limiting middleware run first. Returning a response stops dispatch and later plugin hooks. Server-only endpoint calls do not invoke this hook.
Source§

fn on_http_request_action<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, req: &'life1 AuthRequest, ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<Option<HttpRequestAction>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Inspect or replace the physical request. The default preserves existing on_http_request implementations. Request-local configuration has already been resolved from the incoming request, matching the Source HTTP handler.
Source§

fn on_http_response<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, _req: &'life1 AuthRequest, _ctx: &'life2 AuthContext<S>, _response: &'life3 AuthResponse, ) -> Pin<Box<dyn Future<Output = Result<Option<AuthResponse>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: 'async_trait,

Observe the routed HTTP response before transport middleware (including CORS). Hooks run in registration order; the first replacement stops this chain. Early HTTP request-hook responses skip this stage. Errors escape dispatch; they cannot reverse writes already committed by an endpoint.
Source§

fn before_request<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _req: &'life1 AuthRequest, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<Option<BeforeRequestAction>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called after route matching and before endpoint dispatch. Read more
Source§

fn on_http_endpoint<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, req: &'life1 AuthRequest, ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<Option<HttpEndpointResponse>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Dispatch the resolved HTTP endpoint. Existing plugins return logical values through on_request; plugins returning a native raw response can override this method to bypass the endpoint after-hook pipeline.
Source§

fn after_request<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _req: &'life1 AuthRequest, _ctx: &'life2 AuthContext<S>, response: AuthResponse, ) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Transform a completed response, including redirects and rejections. Read more
Source§

fn on_user_created<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _user: &'life1 <S as AuthSchema>::User, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called after a user is created
Source§

fn on_session_created<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _session: &'life1 <S as AuthSchema>::Session, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called after a session is created
Source§

fn on_user_deleted<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _user_id: &'life1 str, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called before a user is deleted
Source§

fn on_session_deleted<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _session_token: &'life1 str, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called before a session is deleted
Source§

impl Debug for OrganizationPlugin

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OrganizationPlugin

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more