- Thought::new_local → NewThought struct (7 args → 1) - UserWriter::update_profile → UpdateProfileInput struct (6 args → 2) - update_profile use case → UpdateProfileInput (8 args → 3) - ActivityPubService::new → builder pattern (9 args → 5 required + 4 optional setters) - accept_note → AcceptNoteInput struct (8 args → 1) - ThoughtNote::new_public → ThoughtNoteInput struct (8 args → 1) Remove all #[allow(clippy::too_many_arguments)] annotations.
33 lines
853 B
Rust
33 lines
853 B
Rust
pub mod activities;
|
|
pub mod actor_handler;
|
|
pub mod actors;
|
|
pub mod ap_ports;
|
|
pub mod content;
|
|
pub mod data;
|
|
pub mod error;
|
|
pub mod federation;
|
|
pub mod followers_handler;
|
|
pub mod inbox;
|
|
pub mod nodeinfo;
|
|
pub mod outbox;
|
|
pub mod repository;
|
|
pub mod service;
|
|
pub(crate) mod urls;
|
|
pub use urls::AS_PUBLIC;
|
|
pub mod user;
|
|
pub mod webfinger;
|
|
|
|
pub use activitypub_federation::kinds::object::NoteType;
|
|
pub use ap_ports::{
|
|
AcceptNoteInput, ActivityPubRepository, ActorApUrls, OutboundFederationPort, OutboxEntry,
|
|
};
|
|
pub use content::ApObjectHandler;
|
|
pub use data::FederationData;
|
|
pub use error::Error;
|
|
pub use federation::ApFederationConfig;
|
|
pub use repository::{
|
|
BlockedDomain, FederationRepository, Follower, FollowerStatus, FollowingStatus, RemoteActor,
|
|
};
|
|
pub use service::ActivityPubService;
|
|
pub use user::{ApProfileField, ApUser, ApUserRepository};
|