Something went wrong. Try again.
atproto Thingiverse but good
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203// @generated by jacquard-lexicon. DO NOT EDIT.//// Lexicon: app.bsky.actor.defs//// This file was automatically generated from Lexicon schemas.// Any manual changes will be overwritten on the next regeneration.
//! Generated bindings for the `app.bsky.actor` Lexicon namespace/module.pub mod get_preferences;pub mod get_profile;pub mod get_profiles;pub mod get_suggestions;pub mod profile;pub mod put_preferences;pub mod search_actors;pub mod search_actors_typeahead;pub mod status;
#[allow(unused_imports)]use alloc::collections::BTreeMap;
#[allow(unused_imports)]use core::marker::PhantomData;use jacquard_common::{CowStr, BosStr, DefaultStr, FromStaticStr};
#[allow(unused_imports)]use jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation;use jacquard_common::deps::smol_str::SmolStr;use jacquard_common::types::string::{Did, Handle, AtUri, Cid, Datetime, UriValue};use jacquard_common::types::value::Data;use jacquard_derive::{IntoStatic, open_union};use jacquard_lexicon::lexicon::LexiconDoc;use jacquard_lexicon::schema::LexiconSchema;
#[allow(unused_imports)]use jacquard_lexicon::validation::{ConstraintError, ValidationPath};use serde::{Serialize, Deserialize};use crate::com_atproto::label::Label;use crate::com_atproto::repo::strong_ref::StrongRef;use crate::app_bsky::actor;
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct AdultContentPref<S: BosStr = DefaultStr> { /// Defaults to `false`. #[serde(default = "_default_adult_content_pref_enabled")] pub enabled: bool, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct BskyAppProgressGuide<S: BosStr = DefaultStr> { pub guide: S, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct BskyAppStatePref<S: BosStr = DefaultStr> { #[serde(skip_serializing_if = "Option::is_none")] pub active_progress_guide: Option<actor::BskyAppProgressGuide<S>>, ///Indicates if the user is participating in the beta features program. #[serde(skip_serializing_if = "Option::is_none")] pub is_beta_user: Option<bool>, ///Storage for NUXs the user has encountered. #[serde(skip_serializing_if = "Option::is_none")] pub nuxs: Option<Vec<actor::Nux<S>>>, ///An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. #[serde(skip_serializing_if = "Option::is_none")] pub queued_nudges: Option<Vec<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ContentLabelPref<S: BosStr = DefaultStr> { pub label: S, ///Which labeler does this preference apply to? If undefined, applies globally. #[serde(skip_serializing_if = "Option::is_none")] pub labeler_did: Option<Did<S>>, pub visibility: ContentLabelPrefVisibility<S>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum ContentLabelPrefVisibility<S: BosStr = DefaultStr> { Ignore, Show, Warn, Hide, Other(S),}
impl<S: BosStr> ContentLabelPrefVisibility<S> { pub fn as_str(&self) -> &str { match self { Self::Ignore => "ignore", Self::Show => "show", Self::Warn => "warn", Self::Hide => "hide", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "ignore" => Self::Ignore, "show" => Self::Show, "warn" => Self::Warn, "hide" => Self::Hide, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for ContentLabelPrefVisibility<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for ContentLabelPrefVisibility<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for ContentLabelPrefVisibility<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de>for ContentLabelPrefVisibility<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for ContentLabelPrefVisibility<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for ContentLabelPrefVisibility<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = ContentLabelPrefVisibility<S::Output>; fn into_static(self) -> Self::Output { match self { ContentLabelPrefVisibility::Ignore => ContentLabelPrefVisibility::Ignore, ContentLabelPrefVisibility::Show => ContentLabelPrefVisibility::Show, ContentLabelPrefVisibility::Warn => ContentLabelPrefVisibility::Warn, ContentLabelPrefVisibility::Hide => ContentLabelPrefVisibility::Hide, ContentLabelPrefVisibility::Other(v) => { ContentLabelPrefVisibility::Other(v.into_static()) } } }}
/// Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct DeclaredAgePref<S: BosStr = DefaultStr> { ///Indicates if the user has declared that they are over 13 years of age. #[serde(skip_serializing_if = "Option::is_none")] pub is_over_age13: Option<bool>, ///Indicates if the user has declared that they are over 16 years of age. #[serde(skip_serializing_if = "Option::is_none")] pub is_over_age16: Option<bool>, ///Indicates if the user has declared that they are over 18 years of age. #[serde(skip_serializing_if = "Option::is_none")] pub is_over_age18: Option<bool>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct FeedViewPref<S: BosStr = DefaultStr> { ///The URI of the feed, or an identifier which describes the feed. pub feed: S, ///Hide quote posts in the feed. #[serde(skip_serializing_if = "Option::is_none")] pub hide_quote_posts: Option<bool>, ///Hide replies in the feed. #[serde(skip_serializing_if = "Option::is_none")] pub hide_replies: Option<bool>, ///Hide replies in the feed if they do not have this number of likes. #[serde(skip_serializing_if = "Option::is_none")] pub hide_replies_by_like_count: Option<i64>, ///Hide replies in the feed if they are not by followed users. Defaults to `true`. #[serde(skip_serializing_if = "Option::is_none")] #[serde(default = "_default_feed_view_pref_hide_replies_by_unfollowed")] pub hide_replies_by_unfollowed: Option<bool>, ///Hide reposts in the feed. #[serde(skip_serializing_if = "Option::is_none")] pub hide_reposts: Option<bool>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct HiddenPostsPref<S: BosStr = DefaultStr> { ///A list of URIs of posts the account owner has hidden. pub items: Vec<AtUri<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct InterestsPref<S: BosStr = DefaultStr> { ///A list of tags which describe the account owner's interests gathered during onboarding. pub tags: Vec<S>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// The subject's followers whom you also follow
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct KnownFollowers<S: BosStr = DefaultStr> { pub count: i64, pub followers: Vec<actor::ProfileViewBasic<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct LabelerPrefItem<S: BosStr = DefaultStr> { pub did: Did<S>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct LabelersPref<S: BosStr = DefaultStr> { pub labelers: Vec<actor::LabelerPrefItem<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// Preferences for live events.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct LiveEventPreferences<S: BosStr = DefaultStr> { ///A list of feed IDs that the user has hidden from live events. #[serde(skip_serializing_if = "Option::is_none")] pub hidden_feed_ids: Option<Vec<S>>, ///Whether to hide all feeds from live events. Defaults to `false`. #[serde(skip_serializing_if = "Option::is_none")] #[serde(default = "_default_live_event_preferences_hide_all_feeds")] pub hide_all_feeds: Option<bool>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// A word that the account owner has muted.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct MutedWord<S: BosStr = DefaultStr> { ///Groups of users to apply the muted word to. If undefined, applies to all users. #[serde(skip_serializing_if = "Option::is_none")] pub actor_target: Option<MutedWordActorTarget<S>>, ///The date and time at which the muted word will expire and no longer be applied. #[serde(skip_serializing_if = "Option::is_none")] pub expires_at: Option<Datetime>, #[serde(skip_serializing_if = "Option::is_none")] pub id: Option<S>, ///The intended targets of the muted word. pub targets: Vec<actor::MutedWordTarget<S>>, ///The muted word itself. pub value: S, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// Groups of users to apply the muted word to. If undefined, applies to all users.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum MutedWordActorTarget<S: BosStr = DefaultStr> { All, ExcludeFollowing, Other(S),}
impl<S: BosStr> MutedWordActorTarget<S> { pub fn as_str(&self) -> &str { match self { Self::All => "all", Self::ExcludeFollowing => "exclude-following", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "all" => Self::All, "exclude-following" => Self::ExcludeFollowing, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for MutedWordActorTarget<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for MutedWordActorTarget<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for MutedWordActorTarget<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de> for MutedWordActorTarget<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for MutedWordActorTarget<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for MutedWordActorTarget<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = MutedWordActorTarget<S::Output>; fn into_static(self) -> Self::Output { match self { MutedWordActorTarget::All => MutedWordActorTarget::All, MutedWordActorTarget::ExcludeFollowing => { MutedWordActorTarget::ExcludeFollowing } MutedWordActorTarget::Other(v) => { MutedWordActorTarget::Other(v.into_static()) } } }}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum MutedWordTarget<S: BosStr = DefaultStr> { Content, Tag, Other(S),}
impl<S: BosStr> MutedWordTarget<S> { pub fn as_str(&self) -> &str { match self { Self::Content => "content", Self::Tag => "tag", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "content" => Self::Content, "tag" => Self::Tag, _ => Self::Other(s), } }}
impl<S: BosStr> AsRef<str> for MutedWordTarget<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> core::fmt::Display for MutedWordTarget<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> Serialize for MutedWordTarget<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de> for MutedWordTarget<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr> jacquard_common::IntoStatic for MutedWordTarget<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = MutedWordTarget<S::Output>; fn into_static(self) -> Self::Output { match self { MutedWordTarget::Content => MutedWordTarget::Content, MutedWordTarget::Tag => MutedWordTarget::Tag, MutedWordTarget::Other(v) => MutedWordTarget::Other(v.into_static()), } }}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct MutedWordsPref<S: BosStr = DefaultStr> { ///A list of words the account owner has muted. pub items: Vec<actor::MutedWord<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// A new user experiences (NUX) storage object
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct Nux<S: BosStr = DefaultStr> { /// Defaults to `false`. #[serde(default = "_default_nux_completed")] pub completed: bool, ///Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. #[serde(skip_serializing_if = "Option::is_none")] pub data: Option<S>, ///The date and time at which the NUX will expire and should be considered completed. #[serde(skip_serializing_if = "Option::is_none")] pub expires_at: Option<Datetime>, pub id: S, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct PersonalDetailsPref<S: BosStr = DefaultStr> { ///The birth date of account owner. #[serde(skip_serializing_if = "Option::is_none")] pub birth_date: Option<Datetime>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct PostInteractionSettingsPref<S: BosStr = DefaultStr> { ///Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. #[serde(skip_serializing_if = "Option::is_none")] pub postgate_embedding_rules: Option<Vec<Data<S>>>, ///Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. #[serde(skip_serializing_if = "Option::is_none")] pub threadgate_allow_rules: Option< Vec<PostInteractionSettingsPrefThreadgateAllowRulesItem<S>>, >, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[open_union]#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub enum PostInteractionSettingsPrefThreadgateAllowRulesItem<S: BosStr = DefaultStr> {}
#[open_union]#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub enum PreferencesItem<S: BosStr = DefaultStr> { #[serde(rename = "app.bsky.actor.defs#adultContentPref")] AdultContentPref(Box<actor::AdultContentPref<S>>), #[serde(rename = "app.bsky.actor.defs#contentLabelPref")] ContentLabelPref(Box<actor::ContentLabelPref<S>>), #[serde(rename = "app.bsky.actor.defs#savedFeedsPref")] SavedFeedsPref(Box<actor::SavedFeedsPref<S>>), #[serde(rename = "app.bsky.actor.defs#savedFeedsPrefV2")] SavedFeedsPrefV2(Box<actor::SavedFeedsPrefV2<S>>), #[serde(rename = "app.bsky.actor.defs#personalDetailsPref")] PersonalDetailsPref(Box<actor::PersonalDetailsPref<S>>), #[serde(rename = "app.bsky.actor.defs#declaredAgePref")] DeclaredAgePref(Box<actor::DeclaredAgePref<S>>), #[serde(rename = "app.bsky.actor.defs#feedViewPref")] FeedViewPref(Box<actor::FeedViewPref<S>>), #[serde(rename = "app.bsky.actor.defs#threadViewPref")] ThreadViewPref(Box<actor::ThreadViewPref<S>>), #[serde(rename = "app.bsky.actor.defs#interestsPref")] InterestsPref(Box<actor::InterestsPref<S>>), #[serde(rename = "app.bsky.actor.defs#mutedWordsPref")] MutedWordsPref(Box<actor::MutedWordsPref<S>>), #[serde(rename = "app.bsky.actor.defs#hiddenPostsPref")] HiddenPostsPref(Box<actor::HiddenPostsPref<S>>), #[serde(rename = "app.bsky.actor.defs#bskyAppStatePref")] BskyAppStatePref(Box<actor::BskyAppStatePref<S>>), #[serde(rename = "app.bsky.actor.defs#labelersPref")] LabelersPref(Box<actor::LabelersPref<S>>), #[serde(rename = "app.bsky.actor.defs#postInteractionSettingsPref")] PostInteractionSettingsPref(Box<actor::PostInteractionSettingsPref<S>>), #[serde(rename = "app.bsky.actor.defs#verificationPrefs")] VerificationPrefs(Box<actor::VerificationPrefs<S>>), #[serde(rename = "app.bsky.actor.defs#liveEventPreferences")] LiveEventPreferences(Box<actor::LiveEventPreferences<S>>),}
pub type Preferences<S = DefaultStr> = Vec<PreferencesItem<S>>;
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ProfileAssociated<S: BosStr = DefaultStr> { #[serde(skip_serializing_if = "Option::is_none")] pub activity_subscription: Option<actor::ProfileAssociatedActivitySubscription<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub chat: Option<actor::ProfileAssociatedChat<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub feedgens: Option<i64>, #[serde(skip_serializing_if = "Option::is_none")] pub germ: Option<actor::ProfileAssociatedGerm<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub labeler: Option<bool>, #[serde(skip_serializing_if = "Option::is_none")] pub lists: Option<i64>, #[serde(skip_serializing_if = "Option::is_none")] pub starter_packs: Option<i64>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ProfileAssociatedActivitySubscription<S: BosStr = DefaultStr> { pub allow_subscriptions: ProfileAssociatedActivitySubscriptionAllowSubscriptions<S>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum ProfileAssociatedActivitySubscriptionAllowSubscriptions< S: BosStr = DefaultStr,> { Followers, Mutuals, None, Other(S),}
impl<S: BosStr> ProfileAssociatedActivitySubscriptionAllowSubscriptions<S> { pub fn as_str(&self) -> &str { match self { Self::Followers => "followers", Self::Mutuals => "mutuals", Self::None => "none", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "followers" => Self::Followers, "mutuals" => Self::Mutuals, "none" => Self::None, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Displayfor ProfileAssociatedActivitySubscriptionAllowSubscriptions<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str>for ProfileAssociatedActivitySubscriptionAllowSubscriptions<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serializefor ProfileAssociatedActivitySubscriptionAllowSubscriptions<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de>for ProfileAssociatedActivitySubscriptionAllowSubscriptions<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Defaultfor ProfileAssociatedActivitySubscriptionAllowSubscriptions<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStaticfor ProfileAssociatedActivitySubscriptionAllowSubscriptions<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = ProfileAssociatedActivitySubscriptionAllowSubscriptions<S::Output>; fn into_static(self) -> Self::Output { match self { ProfileAssociatedActivitySubscriptionAllowSubscriptions::Followers => { ProfileAssociatedActivitySubscriptionAllowSubscriptions::Followers } ProfileAssociatedActivitySubscriptionAllowSubscriptions::Mutuals => { ProfileAssociatedActivitySubscriptionAllowSubscriptions::Mutuals } ProfileAssociatedActivitySubscriptionAllowSubscriptions::None => { ProfileAssociatedActivitySubscriptionAllowSubscriptions::None } ProfileAssociatedActivitySubscriptionAllowSubscriptions::Other(v) => { ProfileAssociatedActivitySubscriptionAllowSubscriptions::Other( v.into_static(), ) } } }}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ProfileAssociatedChat<S: BosStr = DefaultStr> { #[serde(skip_serializing_if = "Option::is_none")] pub allow_group_invites: Option<ProfileAssociatedChatAllowGroupInvites<S>>, pub allow_incoming: ProfileAssociatedChatAllowIncoming<S>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum ProfileAssociatedChatAllowGroupInvites<S: BosStr = DefaultStr> { All, None, Following, Other(S),}
impl<S: BosStr> ProfileAssociatedChatAllowGroupInvites<S> { pub fn as_str(&self) -> &str { match self { Self::All => "all", Self::None => "none", Self::Following => "following", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "all" => Self::All, "none" => Self::None, "following" => Self::Following, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for ProfileAssociatedChatAllowGroupInvites<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for ProfileAssociatedChatAllowGroupInvites<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for ProfileAssociatedChatAllowGroupInvites<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de>for ProfileAssociatedChatAllowGroupInvites<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for ProfileAssociatedChatAllowGroupInvites<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for ProfileAssociatedChatAllowGroupInvites<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = ProfileAssociatedChatAllowGroupInvites<S::Output>; fn into_static(self) -> Self::Output { match self { ProfileAssociatedChatAllowGroupInvites::All => { ProfileAssociatedChatAllowGroupInvites::All } ProfileAssociatedChatAllowGroupInvites::None => { ProfileAssociatedChatAllowGroupInvites::None } ProfileAssociatedChatAllowGroupInvites::Following => { ProfileAssociatedChatAllowGroupInvites::Following } ProfileAssociatedChatAllowGroupInvites::Other(v) => { ProfileAssociatedChatAllowGroupInvites::Other(v.into_static()) } } }}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum ProfileAssociatedChatAllowIncoming<S: BosStr = DefaultStr> { All, None, Following, Other(S),}
impl<S: BosStr> ProfileAssociatedChatAllowIncoming<S> { pub fn as_str(&self) -> &str { match self { Self::All => "all", Self::None => "none", Self::Following => "following", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "all" => Self::All, "none" => Self::None, "following" => Self::Following, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for ProfileAssociatedChatAllowIncoming<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for ProfileAssociatedChatAllowIncoming<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for ProfileAssociatedChatAllowIncoming<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de>for ProfileAssociatedChatAllowIncoming<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for ProfileAssociatedChatAllowIncoming<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for ProfileAssociatedChatAllowIncoming<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = ProfileAssociatedChatAllowIncoming<S::Output>; fn into_static(self) -> Self::Output { match self { ProfileAssociatedChatAllowIncoming::All => { ProfileAssociatedChatAllowIncoming::All } ProfileAssociatedChatAllowIncoming::None => { ProfileAssociatedChatAllowIncoming::None } ProfileAssociatedChatAllowIncoming::Following => { ProfileAssociatedChatAllowIncoming::Following } ProfileAssociatedChatAllowIncoming::Other(v) => { ProfileAssociatedChatAllowIncoming::Other(v.into_static()) } } }}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ProfileAssociatedGerm<S: BosStr = DefaultStr> { pub message_me_url: UriValue<S>, pub show_button_to: ProfileAssociatedGermShowButtonTo<S>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum ProfileAssociatedGermShowButtonTo<S: BosStr = DefaultStr> { UsersIFollow, Everyone, Other(S),}
impl<S: BosStr> ProfileAssociatedGermShowButtonTo<S> { pub fn as_str(&self) -> &str { match self { Self::UsersIFollow => "usersIFollow", Self::Everyone => "everyone", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "usersIFollow" => Self::UsersIFollow, "everyone" => Self::Everyone, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for ProfileAssociatedGermShowButtonTo<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for ProfileAssociatedGermShowButtonTo<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for ProfileAssociatedGermShowButtonTo<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de>for ProfileAssociatedGermShowButtonTo<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for ProfileAssociatedGermShowButtonTo<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for ProfileAssociatedGermShowButtonTo<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = ProfileAssociatedGermShowButtonTo<S::Output>; fn into_static(self) -> Self::Output { match self { ProfileAssociatedGermShowButtonTo::UsersIFollow => { ProfileAssociatedGermShowButtonTo::UsersIFollow } ProfileAssociatedGermShowButtonTo::Everyone => { ProfileAssociatedGermShowButtonTo::Everyone } ProfileAssociatedGermShowButtonTo::Other(v) => { ProfileAssociatedGermShowButtonTo::Other(v.into_static()) } } }}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ProfileView<S: BosStr = DefaultStr> { #[serde(skip_serializing_if = "Option::is_none")] pub associated: Option<actor::ProfileAssociated<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub avatar: Option<UriValue<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub created_at: Option<Datetime>, ///Debug information for internal development #[serde(skip_serializing_if = "Option::is_none")] pub debug: Option<Data<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<S>, pub did: Did<S>, #[serde(skip_serializing_if = "Option::is_none")] pub display_name: Option<S>, pub handle: Handle<S>, #[serde(skip_serializing_if = "Option::is_none")] pub indexed_at: Option<Datetime>, #[serde(skip_serializing_if = "Option::is_none")] pub labels: Option<Vec<Label<S>>>, #[serde(skip_serializing_if = "Option::is_none")] pub pronouns: Option<S>, #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<actor::StatusView<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub verification: Option<actor::VerificationState<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub viewer: Option<actor::ViewerState<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ProfileViewBasic<S: BosStr = DefaultStr> { #[serde(skip_serializing_if = "Option::is_none")] pub associated: Option<actor::ProfileAssociated<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub avatar: Option<UriValue<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub created_at: Option<Datetime>, ///Debug information for internal development #[serde(skip_serializing_if = "Option::is_none")] pub debug: Option<Data<S>>, pub did: Did<S>, #[serde(skip_serializing_if = "Option::is_none")] pub display_name: Option<S>, pub handle: Handle<S>, #[serde(skip_serializing_if = "Option::is_none")] pub labels: Option<Vec<Label<S>>>, #[serde(skip_serializing_if = "Option::is_none")] pub pronouns: Option<S>, #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<actor::StatusView<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub verification: Option<actor::VerificationState<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub viewer: Option<actor::ViewerState<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ProfileViewDetailed<S: BosStr = DefaultStr> { #[serde(skip_serializing_if = "Option::is_none")] pub associated: Option<actor::ProfileAssociated<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub avatar: Option<UriValue<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub banner: Option<UriValue<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub created_at: Option<Datetime>, ///Debug information for internal development #[serde(skip_serializing_if = "Option::is_none")] pub debug: Option<Data<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<S>, pub did: Did<S>, #[serde(skip_serializing_if = "Option::is_none")] pub display_name: Option<S>, #[serde(skip_serializing_if = "Option::is_none")] pub followers_count: Option<i64>, #[serde(skip_serializing_if = "Option::is_none")] pub follows_count: Option<i64>, pub handle: Handle<S>, #[serde(skip_serializing_if = "Option::is_none")] pub indexed_at: Option<Datetime>, #[serde(skip_serializing_if = "Option::is_none")] pub joined_via_starter_pack: Option<Data<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub labels: Option<Vec<Label<S>>>, #[serde(skip_serializing_if = "Option::is_none")] pub pinned_post: Option<StrongRef<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub posts_count: Option<i64>, #[serde(skip_serializing_if = "Option::is_none")] pub pronouns: Option<S>, #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<actor::StatusView<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub verification: Option<actor::VerificationState<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub viewer: Option<actor::ViewerState<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub website: Option<UriValue<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct SavedFeed<S: BosStr = DefaultStr> { pub id: S, pub pinned: bool, pub r#type: SavedFeedType<S>, pub value: S, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum SavedFeedType<S: BosStr = DefaultStr> { Feed, List, Timeline, Other(S),}
impl<S: BosStr> SavedFeedType<S> { pub fn as_str(&self) -> &str { match self { Self::Feed => "feed", Self::List => "list", Self::Timeline => "timeline", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "feed" => Self::Feed, "list" => Self::List, "timeline" => Self::Timeline, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for SavedFeedType<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for SavedFeedType<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for SavedFeedType<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de> for SavedFeedType<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for SavedFeedType<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for SavedFeedType<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = SavedFeedType<S::Output>; fn into_static(self) -> Self::Output { match self { SavedFeedType::Feed => SavedFeedType::Feed, SavedFeedType::List => SavedFeedType::List, SavedFeedType::Timeline => SavedFeedType::Timeline, SavedFeedType::Other(v) => SavedFeedType::Other(v.into_static()), } }}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct SavedFeedsPref<S: BosStr = DefaultStr> { pub pinned: Vec<AtUri<S>>, pub saved: Vec<AtUri<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub timeline_index: Option<i64>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct SavedFeedsPrefV2<S: BosStr = DefaultStr> { pub items: Vec<actor::SavedFeed<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct StatusView<S: BosStr = DefaultStr> { #[serde(skip_serializing_if = "Option::is_none")] pub cid: Option<Cid<S>>, ///An optional embed associated with the status. #[serde(skip_serializing_if = "Option::is_none")] pub embed: Option<Data<S>>, ///The date when this status will expire. The application might choose to no longer return the status after expiration. #[serde(skip_serializing_if = "Option::is_none")] pub expires_at: Option<Datetime>, ///True if the status is not expired, false if it is expired. Only present if expiration was set. #[serde(skip_serializing_if = "Option::is_none")] pub is_active: Option<bool>, ///True if the user's go-live access has been disabled by a moderator, false otherwise. #[serde(skip_serializing_if = "Option::is_none")] pub is_disabled: Option<bool>, #[serde(skip_serializing_if = "Option::is_none")] pub labels: Option<Vec<Label<S>>>, pub record: Data<S>, ///The status for the account. pub status: StatusViewStatus<S>, #[serde(skip_serializing_if = "Option::is_none")] pub uri: Option<AtUri<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// The status for the account.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum StatusViewStatus<S: BosStr = DefaultStr> { Live, Other(S),}
impl<S: BosStr> StatusViewStatus<S> { pub fn as_str(&self) -> &str { match self { Self::Live => "app.bsky.actor.status#live", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "app.bsky.actor.status#live" => Self::Live, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for StatusViewStatus<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for StatusViewStatus<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for StatusViewStatus<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de> for StatusViewStatus<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for StatusViewStatus<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for StatusViewStatus<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = StatusViewStatus<S::Output>; fn into_static(self) -> Self::Output { match self { StatusViewStatus::Live => StatusViewStatus::Live, StatusViewStatus::Other(v) => StatusViewStatus::Other(v.into_static()), } }}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ThreadViewPref<S: BosStr = DefaultStr> { ///Sorting mode for threads. #[serde(skip_serializing_if = "Option::is_none")] pub sort: Option<ThreadViewPrefSort<S>>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// Sorting mode for threads.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum ThreadViewPrefSort<S: BosStr = DefaultStr> { Oldest, Newest, MostLikes, Random, Hotness, Other(S),}
impl<S: BosStr> ThreadViewPrefSort<S> { pub fn as_str(&self) -> &str { match self { Self::Oldest => "oldest", Self::Newest => "newest", Self::MostLikes => "most-likes", Self::Random => "random", Self::Hotness => "hotness", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "oldest" => Self::Oldest, "newest" => Self::Newest, "most-likes" => Self::MostLikes, "random" => Self::Random, "hotness" => Self::Hotness, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for ThreadViewPrefSort<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for ThreadViewPrefSort<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for ThreadViewPrefSort<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de> for ThreadViewPrefSort<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for ThreadViewPrefSort<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for ThreadViewPrefSort<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = ThreadViewPrefSort<S::Output>; fn into_static(self) -> Self::Output { match self { ThreadViewPrefSort::Oldest => ThreadViewPrefSort::Oldest, ThreadViewPrefSort::Newest => ThreadViewPrefSort::Newest, ThreadViewPrefSort::MostLikes => ThreadViewPrefSort::MostLikes, ThreadViewPrefSort::Random => ThreadViewPrefSort::Random, ThreadViewPrefSort::Hotness => ThreadViewPrefSort::Hotness, ThreadViewPrefSort::Other(v) => ThreadViewPrefSort::Other(v.into_static()), } }}
/// Preferences for how verified accounts appear in the app.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct VerificationPrefs<S: BosStr = DefaultStr> { ///Hide the blue check badges for verified accounts and trusted verifiers. Defaults to `false`. #[serde(skip_serializing_if = "Option::is_none")] #[serde(default = "_default_verification_prefs_hide_badges")] pub hide_badges: Option<bool>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// Represents the verification information about the user this object is attached to.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct VerificationState<S: BosStr = DefaultStr> { ///The user's status as a trusted verifier. pub trusted_verifier_status: VerificationStateTrustedVerifierStatus<S>, ///All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included. pub verifications: Vec<actor::VerificationView<S>>, ///The user's status as a verified account. pub verified_status: VerificationStateVerifiedStatus<S>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// The user's status as a trusted verifier.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum VerificationStateTrustedVerifierStatus<S: BosStr = DefaultStr> { Valid, Invalid, None, Other(S),}
impl<S: BosStr> VerificationStateTrustedVerifierStatus<S> { pub fn as_str(&self) -> &str { match self { Self::Valid => "valid", Self::Invalid => "invalid", Self::None => "none", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "valid" => Self::Valid, "invalid" => Self::Invalid, "none" => Self::None, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for VerificationStateTrustedVerifierStatus<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for VerificationStateTrustedVerifierStatus<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for VerificationStateTrustedVerifierStatus<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de>for VerificationStateTrustedVerifierStatus<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for VerificationStateTrustedVerifierStatus<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for VerificationStateTrustedVerifierStatus<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = VerificationStateTrustedVerifierStatus<S::Output>; fn into_static(self) -> Self::Output { match self { VerificationStateTrustedVerifierStatus::Valid => { VerificationStateTrustedVerifierStatus::Valid } VerificationStateTrustedVerifierStatus::Invalid => { VerificationStateTrustedVerifierStatus::Invalid } VerificationStateTrustedVerifierStatus::None => { VerificationStateTrustedVerifierStatus::None } VerificationStateTrustedVerifierStatus::Other(v) => { VerificationStateTrustedVerifierStatus::Other(v.into_static()) } } }}
/// The user's status as a verified account.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub enum VerificationStateVerifiedStatus<S: BosStr = DefaultStr> { Valid, Invalid, None, Other(S),}
impl<S: BosStr> VerificationStateVerifiedStatus<S> { pub fn as_str(&self) -> &str { match self { Self::Valid => "valid", Self::Invalid => "invalid", Self::None => "none", Self::Other(s) => s.as_ref(), } } /// Construct from a string-like value, matching known values. pub fn from_value(s: S) -> Self { match s.as_ref() { "valid" => Self::Valid, "invalid" => Self::Invalid, "none" => Self::None, _ => Self::Other(s), } }}
impl<S: BosStr> core::fmt::Display for VerificationStateVerifiedStatus<S> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) }}
impl<S: BosStr> AsRef<str> for VerificationStateVerifiedStatus<S> { fn as_ref(&self) -> &str { self.as_str() }}
impl<S: BosStr> Serialize for VerificationStateVerifiedStatus<S> { fn serialize<Ser>(&self, serializer: Ser) -> Result<Ser::Ok, Ser::Error> where Ser: serde::Serializer, { serializer.serialize_str(self.as_str()) }}
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de>for VerificationStateVerifiedStatus<S> { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let s = S::deserialize(deserializer)?; Ok(Self::from_value(s)) }}
impl<S: BosStr + Default> Default for VerificationStateVerifiedStatus<S> { fn default() -> Self { Self::Other(Default::default()) }}
impl<S: BosStr> jacquard_common::IntoStatic for VerificationStateVerifiedStatus<S>where S: BosStr + jacquard_common::IntoStatic, S::Output: BosStr,{ type Output = VerificationStateVerifiedStatus<S::Output>; fn into_static(self) -> Self::Output { match self { VerificationStateVerifiedStatus::Valid => { VerificationStateVerifiedStatus::Valid } VerificationStateVerifiedStatus::Invalid => { VerificationStateVerifiedStatus::Invalid } VerificationStateVerifiedStatus::None => { VerificationStateVerifiedStatus::None } VerificationStateVerifiedStatus::Other(v) => { VerificationStateVerifiedStatus::Other(v.into_static()) } } }}
/// An individual verification for an associated subject.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct VerificationView<S: BosStr = DefaultStr> { ///Timestamp when the verification was created. pub created_at: Datetime, ///True if the verification passes validation, otherwise false. pub is_valid: bool, ///The user who issued this verification. pub issuer: Did<S>, ///The display name of the issuer. #[serde(skip_serializing_if = "Option::is_none")] pub issuer_display_name: Option<S>, ///The handle of the issuer. #[serde(skip_serializing_if = "Option::is_none")] pub issuer_handle: Option<Handle<S>>, ///The AT-URI of the verification record. pub uri: AtUri<S>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
/// Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]pub struct ViewerState<S: BosStr = DefaultStr> { ///This property is present only in selected cases, as an optimization. #[serde(skip_serializing_if = "Option::is_none")] pub activity_subscription: Option<Data<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub blocked_by: Option<bool>, #[serde(skip_serializing_if = "Option::is_none")] pub blocking: Option<AtUri<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub blocking_by_list: Option<Data<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub followed_by: Option<AtUri<S>>, #[serde(skip_serializing_if = "Option::is_none")] pub following: Option<AtUri<S>>, ///This property is present only in selected cases, as an optimization. #[serde(skip_serializing_if = "Option::is_none")] pub known_followers: Option<actor::KnownFollowers<S>>, ///Whether the account is fully muted, directly or via a mutelist. False when the mute is scoped to specific kinds; see mutedOnlyReposts and mutedOnlyQuoteposts. #[serde(skip_serializing_if = "Option::is_none")] pub muted: Option<bool>, #[serde(skip_serializing_if = "Option::is_none")] pub muted_by_list: Option<Data<S>>, ///Whether the account's quote posts are muted. Scoped mutes are exclusive with muted: this can be true while muted is false. If muted is true, this will be false. #[serde(skip_serializing_if = "Option::is_none")] pub muted_only_quoteposts: Option<bool>, ///Whether the account's reposts are muted. Scoped mutes are exclusive with muted: this can be true while muted is false. If muted is true, this will be false. #[serde(skip_serializing_if = "Option::is_none")] pub muted_only_reposts: Option<bool>, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,}
impl<S: BosStr> LexiconSchema for AdultContentPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "adultContentPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for BskyAppProgressGuide<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "bskyAppProgressGuide" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { { let value = &self.guide; #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 100usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("guide"), max: 100usize, actual: <str>::len(value.as_ref()), }); } } Ok(()) }}
impl<S: BosStr> LexiconSchema for BskyAppStatePref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "bskyAppStatePref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { if let Some(ref value) = self.nuxs { #[allow(unused_comparisons)] if value.len() > 100usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("nuxs"), max: 100usize, actual: value.len(), }); } } if let Some(ref value) = self.queued_nudges { #[allow(unused_comparisons)] if value.len() > 1000usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("queued_nudges"), max: 1000usize, actual: value.len(), }); } } if let Some(values) = &self.queued_nudges { for value in values { #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 100usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("queued_nudges"), max: 100usize, actual: <str>::len(value.as_ref()), }); } } } Ok(()) }}
impl<S: BosStr> LexiconSchema for ContentLabelPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "contentLabelPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for DeclaredAgePref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "declaredAgePref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for FeedViewPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "feedViewPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for HiddenPostsPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "hiddenPostsPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for InterestsPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "interestsPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { { let value = &self.tags; #[allow(unused_comparisons)] if value.len() > 100usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("tags"), max: 100usize, actual: value.len(), }); } } for value in &self.tags { #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 640usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("tags"), max: 640usize, actual: <str>::len(value.as_ref()), }); } } for value in &self.tags { { let count = UnicodeSegmentation::graphemes(value.as_ref(), true).count(); if count > 64usize { return Err(ConstraintError::MaxGraphemes { path: ValidationPath::from_field("tags"), max: 64usize, actual: count, }); } } } Ok(()) }}
impl<S: BosStr> LexiconSchema for KnownFollowers<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "knownFollowers" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { { let value = &self.followers; #[allow(unused_comparisons)] if value.len() > 5usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("followers"), max: 5usize, actual: value.len(), }); } } { let value = &self.followers; #[allow(unused_comparisons)] if value.len() < 0usize { return Err(ConstraintError::MinLength { path: ValidationPath::from_field("followers"), min: 0usize, actual: value.len(), }); } } Ok(()) }}
impl<S: BosStr> LexiconSchema for LabelerPrefItem<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "labelerPrefItem" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for LabelersPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "labelersPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for LiveEventPreferences<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "liveEventPreferences" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for MutedWord<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "mutedWord" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { for value in &self.targets { #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 640usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("targets"), max: 640usize, actual: <str>::len(value.as_ref()), }); } } for value in &self.targets { { let count = UnicodeSegmentation::graphemes(value.as_ref(), true).count(); if count > 64usize { return Err(ConstraintError::MaxGraphemes { path: ValidationPath::from_field("targets"), max: 64usize, actual: count, }); } } } { let value = &self.value; #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 10000usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("value"), max: 10000usize, actual: <str>::len(value.as_ref()), }); } } { let value = &self.value; { let count = UnicodeSegmentation::graphemes(value.as_ref(), true).count(); if count > 1000usize { return Err(ConstraintError::MaxGraphemes { path: ValidationPath::from_field("value"), max: 1000usize, actual: count, }); } } } Ok(()) }}
impl<S: BosStr> LexiconSchema for MutedWordsPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "mutedWordsPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for Nux<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "nux" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { if let Some(ref value) = self.data { #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 3000usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("data"), max: 3000usize, actual: <str>::len(value.as_ref()), }); } } if let Some(ref value) = self.data { { let count = UnicodeSegmentation::graphemes(value.as_ref(), true).count(); if count > 300usize { return Err(ConstraintError::MaxGraphemes { path: ValidationPath::from_field("data"), max: 300usize, actual: count, }); } } } { let value = &self.id; #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 100usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("id"), max: 100usize, actual: <str>::len(value.as_ref()), }); } } Ok(()) }}
impl<S: BosStr> LexiconSchema for PersonalDetailsPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "personalDetailsPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for PostInteractionSettingsPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "postInteractionSettingsPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { if let Some(ref value) = self.postgate_embedding_rules { #[allow(unused_comparisons)] if value.len() > 5usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("postgate_embedding_rules"), max: 5usize, actual: value.len(), }); } } if let Some(ref value) = self.threadgate_allow_rules { #[allow(unused_comparisons)] if value.len() > 5usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("threadgate_allow_rules"), max: 5usize, actual: value.len(), }); } } Ok(()) }}
impl<S: BosStr> LexiconSchema for ProfileAssociated<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "profileAssociated" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for ProfileAssociatedActivitySubscription<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "profileAssociatedActivitySubscription" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for ProfileAssociatedChat<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "profileAssociatedChat" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for ProfileAssociatedGerm<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "profileAssociatedGerm" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for ProfileView<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "profileView" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { if let Some(ref value) = self.description { #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 2560usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("description"), max: 2560usize, actual: <str>::len(value.as_ref()), }); } } if let Some(ref value) = self.description { { let count = UnicodeSegmentation::graphemes(value.as_ref(), true).count(); if count > 256usize { return Err(ConstraintError::MaxGraphemes { path: ValidationPath::from_field("description"), max: 256usize, actual: count, }); } } } if let Some(ref value) = self.display_name { #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 640usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("display_name"), max: 640usize, actual: <str>::len(value.as_ref()), }); } } if let Some(ref value) = self.display_name { { let count = UnicodeSegmentation::graphemes(value.as_ref(), true).count(); if count > 64usize { return Err(ConstraintError::MaxGraphemes { path: ValidationPath::from_field("display_name"), max: 64usize, actual: count, }); } } } Ok(()) }}
impl<S: BosStr> LexiconSchema for ProfileViewBasic<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "profileViewBasic" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { if let Some(ref value) = self.display_name { #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 640usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("display_name"), max: 640usize, actual: <str>::len(value.as_ref()), }); } } if let Some(ref value) = self.display_name { { let count = UnicodeSegmentation::graphemes(value.as_ref(), true).count(); if count > 64usize { return Err(ConstraintError::MaxGraphemes { path: ValidationPath::from_field("display_name"), max: 64usize, actual: count, }); } } } Ok(()) }}
impl<S: BosStr> LexiconSchema for ProfileViewDetailed<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "profileViewDetailed" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { if let Some(ref value) = self.description { #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 2560usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("description"), max: 2560usize, actual: <str>::len(value.as_ref()), }); } } if let Some(ref value) = self.description { { let count = UnicodeSegmentation::graphemes(value.as_ref(), true).count(); if count > 256usize { return Err(ConstraintError::MaxGraphemes { path: ValidationPath::from_field("description"), max: 256usize, actual: count, }); } } } if let Some(ref value) = self.display_name { #[allow(unused_comparisons)] if <str>::len(value.as_ref()) > 640usize { return Err(ConstraintError::MaxLength { path: ValidationPath::from_field("display_name"), max: 640usize, actual: <str>::len(value.as_ref()), }); } } if let Some(ref value) = self.display_name { { let count = UnicodeSegmentation::graphemes(value.as_ref(), true).count(); if count > 64usize { return Err(ConstraintError::MaxGraphemes { path: ValidationPath::from_field("display_name"), max: 64usize, actual: count, }); } } } Ok(()) }}
impl<S: BosStr> LexiconSchema for SavedFeed<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "savedFeed" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for SavedFeedsPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "savedFeedsPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for SavedFeedsPrefV2<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "savedFeedsPrefV2" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for StatusView<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "statusView" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for ThreadViewPref<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "threadViewPref" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for VerificationPrefs<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "verificationPrefs" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for VerificationState<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "verificationState" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for VerificationView<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "verificationView" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
impl<S: BosStr> LexiconSchema for ViewerState<S> { fn nsid() -> &'static str { "app.bsky.actor.defs" } fn def_name() -> &'static str { "viewerState" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_bsky_actor_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
fn _default_adult_content_pref_enabled() -> bool { false}
impl Default for AdultContentPref { fn default() -> Self { Self { enabled: false, extra_data: Default::default(), } }}
pub mod adult_content_pref_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Enabled; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Enabled = Unset; } ///State transition - sets the `enabled` field to Set pub struct SetEnabled<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetEnabled<St> {} impl<St: State> State for SetEnabled<St> { type Enabled = Set<members::enabled>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `enabled` field pub struct enabled(()); }}
/// Builder for constructing an instance of this type.pub struct AdultContentPrefBuilder< St: adult_content_pref_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: (Option<bool>,), _type: PhantomData<fn() -> S>,}
impl AdultContentPref<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> AdultContentPrefBuilder< adult_content_pref_state::Empty, DefaultStr, > { AdultContentPrefBuilder::new() }}
impl<S: BosStr> AdultContentPref<S> { /// Create a new builder for this type pub fn builder() -> AdultContentPrefBuilder<adult_content_pref_state::Empty, S> { AdultContentPrefBuilder::builder() }}
impl AdultContentPrefBuilder<adult_content_pref_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { AdultContentPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<S: BosStr> AdultContentPrefBuilder<adult_content_pref_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { AdultContentPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<St, S: BosStr> AdultContentPrefBuilder<St, S>where St: adult_content_pref_state::State, St::Enabled: adult_content_pref_state::IsUnset,{ /// Set the `enabled` field (required) pub fn enabled( mut self, value: impl Into<bool>, ) -> AdultContentPrefBuilder<adult_content_pref_state::SetEnabled<St>, S> { self._fields.0 = Option::Some(value.into()); AdultContentPrefBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> AdultContentPrefBuilder<St, S>where St: adult_content_pref_state::State, St::Enabled: adult_content_pref_state::IsSet,{ /// Build the final struct. pub fn build(self) -> AdultContentPref<S> { AdultContentPref { enabled: self._fields.0.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> AdultContentPref<S> { AdultContentPref { enabled: self._fields.0.unwrap(), extra_data: Some(extra_data), } }}
fn lexicon_doc_app_bsky_actor_defs() -> LexiconDoc<'static> { #[allow(unused_imports)] use jacquard_common::{CowStr, deps::smol_str::SmolStr, types::blob::MimeType}; use jacquard_lexicon::lexicon::*; use alloc::collections::BTreeMap; LexiconDoc { lexicon: Lexicon::Lexicon1, id: CowStr::new_static("app.bsky.actor.defs"), defs: { let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("adultContentPref"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("enabled")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("enabled"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("bskyAppProgressGuide"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.", ), ), required: Some(vec![SmolStr::new_static("guide")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("guide"), LexObjectProperty::String(LexString { max_length: Some(100usize), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("bskyAppStatePref"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.", ), ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("activeProgressGuide"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#bskyAppProgressGuide"), ..Default::default() }), ); map.insert( SmolStr::new_static("isBetaUser"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("nuxs"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "Storage for NUXs the user has encountered.", ), ), items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("app.bsky.actor.defs#nux"), ..Default::default() }), max_length: Some(100usize), ..Default::default() }), ); map.insert( SmolStr::new_static("queuedNudges"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.", ), ), items: LexArrayItem::String(LexString { max_length: Some(100usize), ..Default::default() }), max_length: Some(1000usize), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("contentLabelPref"), LexUserType::Object(LexObject { required: Some( vec![ SmolStr::new_static("label"), SmolStr::new_static("visibility") ], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("label"), LexObjectProperty::String(LexString { ..Default::default() }), ); map.insert( SmolStr::new_static("labelerDid"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "Which labeler does this preference apply to? If undefined, applies globally.", ), ), format: Some(LexStringFormat::Did), ..Default::default() }), ); map.insert( SmolStr::new_static("visibility"), LexObjectProperty::String(LexString { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("declaredAgePref"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration.", ), ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("isOverAge13"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("isOverAge16"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("isOverAge18"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("feedViewPref"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("feed")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("feed"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "The URI of the feed, or an identifier which describes the feed.", ), ), ..Default::default() }), ); map.insert( SmolStr::new_static("hideQuotePosts"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("hideReplies"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("hideRepliesByLikeCount"), LexObjectProperty::Integer(LexInteger { ..Default::default() }), ); map.insert( SmolStr::new_static("hideRepliesByUnfollowed"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("hideReposts"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("hiddenPostsPref"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("items")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("items"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "A list of URIs of posts the account owner has hidden.", ), ), items: LexArrayItem::String(LexString { format: Some(LexStringFormat::AtUri), ..Default::default() }), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("interestsPref"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("tags")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("tags"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "A list of tags which describe the account owner's interests gathered during onboarding.", ), ), items: LexArrayItem::String(LexString { max_length: Some(640usize), max_graphemes: Some(64usize), ..Default::default() }), max_length: Some(100usize), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("knownFollowers"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "The subject's followers whom you also follow", ), ), required: Some( vec![ SmolStr::new_static("count"), SmolStr::new_static("followers") ], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("count"), LexObjectProperty::Integer(LexInteger { ..Default::default() }), ); map.insert( SmolStr::new_static("followers"), LexObjectProperty::Array(LexArray { items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("#profileViewBasic"), ..Default::default() }), min_length: Some(0usize), max_length: Some(5usize), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("labelerPrefItem"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("did")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("did"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Did), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("labelersPref"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("labelers")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("labelers"), LexObjectProperty::Array(LexArray { items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("#labelerPrefItem"), ..Default::default() }), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("liveEventPreferences"), LexUserType::Object(LexObject { description: Some( CowStr::new_static("Preferences for live events."), ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("hiddenFeedIds"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "A list of feed IDs that the user has hidden from live events.", ), ), items: LexArrayItem::String(LexString { ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("hideAllFeeds"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("mutedWord"), LexUserType::Object(LexObject { description: Some( CowStr::new_static("A word that the account owner has muted."), ), required: Some( vec![ SmolStr::new_static("value"), SmolStr::new_static("targets") ], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("actorTarget"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "Groups of users to apply the muted word to. If undefined, applies to all users.", ), ), ..Default::default() }), ); map.insert( SmolStr::new_static("expiresAt"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "The date and time at which the muted word will expire and no longer be applied.", ), ), format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map.insert( SmolStr::new_static("id"), LexObjectProperty::String(LexString { ..Default::default() }), ); map.insert( SmolStr::new_static("targets"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "The intended targets of the muted word.", ), ), items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static( "app.bsky.actor.defs#mutedWordTarget", ), ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("value"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static("The muted word itself."), ), max_length: Some(10000usize), max_graphemes: Some(1000usize), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("mutedWordTarget"), LexUserType::String(LexString { max_length: Some(640usize), max_graphemes: Some(64usize), ..Default::default() }), ); map.insert( SmolStr::new_static("mutedWordsPref"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("items")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("items"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "A list of words the account owner has muted.", ), ), items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("app.bsky.actor.defs#mutedWord"), ..Default::default() }), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("nux"), LexUserType::Object(LexObject { description: Some( CowStr::new_static("A new user experiences (NUX) storage object"), ), required: Some( vec![SmolStr::new_static("id"), SmolStr::new_static("completed")], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("completed"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("data"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.", ), ), max_length: Some(3000usize), max_graphemes: Some(300usize), ..Default::default() }), ); map.insert( SmolStr::new_static("expiresAt"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "The date and time at which the NUX will expire and should be considered completed.", ), ), format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map.insert( SmolStr::new_static("id"), LexObjectProperty::String(LexString { max_length: Some(100usize), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("personalDetailsPref"), LexUserType::Object(LexObject { properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("birthDate"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static("The birth date of account owner."), ), format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("postInteractionSettingsPref"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.", ), ), required: Some(vec![]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("postgateEmbeddingRules"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.", ), ), items: LexArrayItem::Union(LexRefUnion { refs: vec![ CowStr::new_static("app.bsky.feed.postgate#disableRule") ], ..Default::default() }), max_length: Some(5usize), ..Default::default() }), ); map.insert( SmolStr::new_static("threadgateAllowRules"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply.", ), ), items: LexArrayItem::Union(LexRefUnion { refs: vec![ CowStr::new_static("app.bsky.feed.threadgate#mentionRule"), CowStr::new_static("app.bsky.feed.threadgate#followerRule"), CowStr::new_static("app.bsky.feed.threadgate#followingRule"), CowStr::new_static("app.bsky.feed.threadgate#listRule") ], ..Default::default() }), max_length: Some(5usize), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("preferences"), LexUserType::Array(LexArray { items: LexArrayItem::Union(LexRefUnion { refs: vec![ CowStr::new_static("#adultContentPref"), CowStr::new_static("#contentLabelPref"), CowStr::new_static("#savedFeedsPref"), CowStr::new_static("#savedFeedsPrefV2"), CowStr::new_static("#personalDetailsPref"), CowStr::new_static("#declaredAgePref"), CowStr::new_static("#feedViewPref"), CowStr::new_static("#threadViewPref"), CowStr::new_static("#interestsPref"), CowStr::new_static("#mutedWordsPref"), CowStr::new_static("#hiddenPostsPref"), CowStr::new_static("#bskyAppStatePref"), CowStr::new_static("#labelersPref"), CowStr::new_static("#postInteractionSettingsPref"), CowStr::new_static("#verificationPrefs"), CowStr::new_static("#liveEventPreferences") ], ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("profileAssociated"), LexUserType::Object(LexObject { properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("activitySubscription"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static( "#profileAssociatedActivitySubscription", ), ..Default::default() }), ); map.insert( SmolStr::new_static("chat"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#profileAssociatedChat"), ..Default::default() }), ); map.insert( SmolStr::new_static("feedgens"), LexObjectProperty::Integer(LexInteger { ..Default::default() }), ); map.insert( SmolStr::new_static("germ"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#profileAssociatedGerm"), ..Default::default() }), ); map.insert( SmolStr::new_static("labeler"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("lists"), LexObjectProperty::Integer(LexInteger { ..Default::default() }), ); map.insert( SmolStr::new_static("starterPacks"), LexObjectProperty::Integer(LexInteger { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("profileAssociatedActivitySubscription"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("allowSubscriptions")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("allowSubscriptions"), LexObjectProperty::String(LexString { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("profileAssociatedChat"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("allowIncoming")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("allowGroupInvites"), LexObjectProperty::String(LexString { ..Default::default() }), ); map.insert( SmolStr::new_static("allowIncoming"), LexObjectProperty::String(LexString { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("profileAssociatedGerm"), LexUserType::Object(LexObject { required: Some( vec![ SmolStr::new_static("showButtonTo"), SmolStr::new_static("messageMeUrl") ], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("messageMeUrl"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Uri), ..Default::default() }), ); map.insert( SmolStr::new_static("showButtonTo"), LexObjectProperty::String(LexString { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("profileView"), LexUserType::Object(LexObject { required: Some( vec![SmolStr::new_static("did"), SmolStr::new_static("handle")], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("associated"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#profileAssociated"), ..Default::default() }), ); map.insert( SmolStr::new_static("avatar"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Uri), ..Default::default() }), ); map.insert( SmolStr::new_static("createdAt"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map.insert( SmolStr::new_static("debug"), LexObjectProperty::Unknown(LexUnknown { ..Default::default() }), ); map.insert( SmolStr::new_static("description"), LexObjectProperty::String(LexString { max_length: Some(2560usize), max_graphemes: Some(256usize), ..Default::default() }), ); map.insert( SmolStr::new_static("did"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Did), ..Default::default() }), ); map.insert( SmolStr::new_static("displayName"), LexObjectProperty::String(LexString { max_length: Some(640usize), max_graphemes: Some(64usize), ..Default::default() }), ); map.insert( SmolStr::new_static("handle"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Handle), ..Default::default() }), ); map.insert( SmolStr::new_static("indexedAt"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map.insert( SmolStr::new_static("labels"), LexObjectProperty::Array(LexArray { items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("com.atproto.label.defs#label"), ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("pronouns"), LexObjectProperty::String(LexString { ..Default::default() }), ); map.insert( SmolStr::new_static("status"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#statusView"), ..Default::default() }), ); map.insert( SmolStr::new_static("verification"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#verificationState"), ..Default::default() }), ); map.insert( SmolStr::new_static("viewer"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#viewerState"), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("profileViewBasic"), LexUserType::Object(LexObject { required: Some( vec![SmolStr::new_static("did"), SmolStr::new_static("handle")], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("associated"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#profileAssociated"), ..Default::default() }), ); map.insert( SmolStr::new_static("avatar"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Uri), ..Default::default() }), ); map.insert( SmolStr::new_static("createdAt"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map.insert( SmolStr::new_static("debug"), LexObjectProperty::Unknown(LexUnknown { ..Default::default() }), ); map.insert( SmolStr::new_static("did"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Did), ..Default::default() }), ); map.insert( SmolStr::new_static("displayName"), LexObjectProperty::String(LexString { max_length: Some(640usize), max_graphemes: Some(64usize), ..Default::default() }), ); map.insert( SmolStr::new_static("handle"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Handle), ..Default::default() }), ); map.insert( SmolStr::new_static("labels"), LexObjectProperty::Array(LexArray { items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("com.atproto.label.defs#label"), ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("pronouns"), LexObjectProperty::String(LexString { ..Default::default() }), ); map.insert( SmolStr::new_static("status"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#statusView"), ..Default::default() }), ); map.insert( SmolStr::new_static("verification"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#verificationState"), ..Default::default() }), ); map.insert( SmolStr::new_static("viewer"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#viewerState"), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("profileViewDetailed"), LexUserType::Object(LexObject { required: Some( vec![SmolStr::new_static("did"), SmolStr::new_static("handle")], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("associated"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#profileAssociated"), ..Default::default() }), ); map.insert( SmolStr::new_static("avatar"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Uri), ..Default::default() }), ); map.insert( SmolStr::new_static("banner"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Uri), ..Default::default() }), ); map.insert( SmolStr::new_static("createdAt"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map.insert( SmolStr::new_static("debug"), LexObjectProperty::Unknown(LexUnknown { ..Default::default() }), ); map.insert( SmolStr::new_static("description"), LexObjectProperty::String(LexString { max_length: Some(2560usize), max_graphemes: Some(256usize), ..Default::default() }), ); map.insert( SmolStr::new_static("did"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Did), ..Default::default() }), ); map.insert( SmolStr::new_static("displayName"), LexObjectProperty::String(LexString { max_length: Some(640usize), max_graphemes: Some(64usize), ..Default::default() }), ); map.insert( SmolStr::new_static("followersCount"), LexObjectProperty::Integer(LexInteger { ..Default::default() }), ); map.insert( SmolStr::new_static("followsCount"), LexObjectProperty::Integer(LexInteger { ..Default::default() }), ); map.insert( SmolStr::new_static("handle"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Handle), ..Default::default() }), ); map.insert( SmolStr::new_static("indexedAt"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map.insert( SmolStr::new_static("joinedViaStarterPack"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static( "app.bsky.graph.defs#starterPackViewBasic", ), ..Default::default() }), ); map.insert( SmolStr::new_static("labels"), LexObjectProperty::Array(LexArray { items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("com.atproto.label.defs#label"), ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("pinnedPost"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("com.atproto.repo.strongRef"), ..Default::default() }), ); map.insert( SmolStr::new_static("postsCount"), LexObjectProperty::Integer(LexInteger { ..Default::default() }), ); map.insert( SmolStr::new_static("pronouns"), LexObjectProperty::String(LexString { ..Default::default() }), ); map.insert( SmolStr::new_static("status"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#statusView"), ..Default::default() }), ); map.insert( SmolStr::new_static("verification"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#verificationState"), ..Default::default() }), ); map.insert( SmolStr::new_static("viewer"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#viewerState"), ..Default::default() }), ); map.insert( SmolStr::new_static("website"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Uri), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("savedFeed"), LexUserType::Object(LexObject { required: Some( vec![ SmolStr::new_static("id"), SmolStr::new_static("type"), SmolStr::new_static("value"), SmolStr::new_static("pinned") ], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("id"), LexObjectProperty::String(LexString { ..Default::default() }), ); map.insert( SmolStr::new_static("pinned"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("type"), LexObjectProperty::String(LexString { ..Default::default() }), ); map.insert( SmolStr::new_static("value"), LexObjectProperty::String(LexString { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("savedFeedsPref"), LexUserType::Object(LexObject { required: Some( vec![SmolStr::new_static("pinned"), SmolStr::new_static("saved")], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("pinned"), LexObjectProperty::Array(LexArray { items: LexArrayItem::String(LexString { format: Some(LexStringFormat::AtUri), ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("saved"), LexObjectProperty::Array(LexArray { items: LexArrayItem::String(LexString { format: Some(LexStringFormat::AtUri), ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("timelineIndex"), LexObjectProperty::Integer(LexInteger { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("savedFeedsPrefV2"), LexUserType::Object(LexObject { required: Some(vec![SmolStr::new_static("items")]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("items"), LexObjectProperty::Array(LexArray { items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("app.bsky.actor.defs#savedFeed"), ..Default::default() }), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("statusView"), LexUserType::Object(LexObject { required: Some( vec![ SmolStr::new_static("status"), SmolStr::new_static("record") ], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("cid"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::Cid), ..Default::default() }), ); map.insert( SmolStr::new_static("embed"), LexObjectProperty::Union(LexRefUnion { description: Some( CowStr::new_static( "An optional embed associated with the status.", ), ), refs: vec![ CowStr::new_static("app.bsky.embed.external#view") ], ..Default::default() }), ); map.insert( SmolStr::new_static("expiresAt"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "The date when this status will expire. The application might choose to no longer return the status after expiration.", ), ), format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map.insert( SmolStr::new_static("isActive"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("isDisabled"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("labels"), LexObjectProperty::Array(LexArray { items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("com.atproto.label.defs#label"), ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("record"), LexObjectProperty::Unknown(LexUnknown { ..Default::default() }), ); map.insert( SmolStr::new_static("status"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static("The status for the account."), ), ..Default::default() }), ); map.insert( SmolStr::new_static("uri"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::AtUri), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("threadViewPref"), LexUserType::Object(LexObject { properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("sort"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static("Sorting mode for threads."), ), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("verificationPrefs"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "Preferences for how verified accounts appear in the app.", ), ), required: Some(vec![]), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("hideBadges"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("verificationState"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "Represents the verification information about the user this object is attached to.", ), ), required: Some( vec![ SmolStr::new_static("verifications"), SmolStr::new_static("verifiedStatus"), SmolStr::new_static("trustedVerifierStatus") ], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("trustedVerifierStatus"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "The user's status as a trusted verifier.", ), ), ..Default::default() }), ); map.insert( SmolStr::new_static("verifications"), LexObjectProperty::Array(LexArray { description: Some( CowStr::new_static( "All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.", ), ), items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static("#verificationView"), ..Default::default() }), ..Default::default() }), ); map.insert( SmolStr::new_static("verifiedStatus"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "The user's status as a verified account.", ), ), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("verificationView"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "An individual verification for an associated subject.", ), ), required: Some( vec![ SmolStr::new_static("issuer"), SmolStr::new_static("uri"), SmolStr::new_static("isValid"), SmolStr::new_static("createdAt") ], ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("createdAt"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "Timestamp when the verification was created.", ), ), format: Some(LexStringFormat::Datetime), ..Default::default() }), ); map.insert( SmolStr::new_static("isValid"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("issuer"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static("The user who issued this verification."), ), format: Some(LexStringFormat::Did), ..Default::default() }), ); map.insert( SmolStr::new_static("issuerDisplayName"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static("The display name of the issuer."), ), ..Default::default() }), ); map.insert( SmolStr::new_static("issuerHandle"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static("The handle of the issuer."), ), format: Some(LexStringFormat::Handle), ..Default::default() }), ); map.insert( SmolStr::new_static("uri"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static("The AT-URI of the verification record."), ), format: Some(LexStringFormat::AtUri), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("viewerState"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.", ), ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("activitySubscription"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static( "app.bsky.notification.defs#activitySubscription", ), ..Default::default() }), ); map.insert( SmolStr::new_static("blockedBy"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("blocking"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::AtUri), ..Default::default() }), ); map.insert( SmolStr::new_static("blockingByList"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static( "app.bsky.graph.defs#listViewBasic", ), ..Default::default() }), ); map.insert( SmolStr::new_static("followedBy"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::AtUri), ..Default::default() }), ); map.insert( SmolStr::new_static("following"), LexObjectProperty::String(LexString { format: Some(LexStringFormat::AtUri), ..Default::default() }), ); map.insert( SmolStr::new_static("knownFollowers"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static("#knownFollowers"), ..Default::default() }), ); map.insert( SmolStr::new_static("muted"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("mutedByList"), LexObjectProperty::Ref(LexRef { r#ref: CowStr::new_static( "app.bsky.graph.defs#listViewBasic", ), ..Default::default() }), ); map.insert( SmolStr::new_static("mutedOnlyQuoteposts"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map.insert( SmolStr::new_static("mutedOnlyReposts"), LexObjectProperty::Boolean(LexBoolean { ..Default::default() }), ); map }, ..Default::default() }), ); map }, ..Default::default() }}
fn _default_feed_view_pref_hide_replies_by_unfollowed() -> Option<bool> { Some(true)}
pub mod hidden_posts_pref_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Items; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Items = Unset; } ///State transition - sets the `items` field to Set pub struct SetItems<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetItems<St> {} impl<St: State> State for SetItems<St> { type Items = Set<members::items>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `items` field pub struct items(()); }}
/// Builder for constructing an instance of this type.pub struct HiddenPostsPrefBuilder< St: hidden_posts_pref_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: (Option<Vec<AtUri<S>>>,), _type: PhantomData<fn() -> S>,}
impl HiddenPostsPref<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> HiddenPostsPrefBuilder<hidden_posts_pref_state::Empty, DefaultStr> { HiddenPostsPrefBuilder::new() }}
impl<S: BosStr> HiddenPostsPref<S> { /// Create a new builder for this type pub fn builder() -> HiddenPostsPrefBuilder<hidden_posts_pref_state::Empty, S> { HiddenPostsPrefBuilder::builder() }}
impl HiddenPostsPrefBuilder<hidden_posts_pref_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { HiddenPostsPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<S: BosStr> HiddenPostsPrefBuilder<hidden_posts_pref_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { HiddenPostsPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<St, S: BosStr> HiddenPostsPrefBuilder<St, S>where St: hidden_posts_pref_state::State, St::Items: hidden_posts_pref_state::IsUnset,{ /// Set the `items` field (required) pub fn items( mut self, value: impl Into<Vec<AtUri<S>>>, ) -> HiddenPostsPrefBuilder<hidden_posts_pref_state::SetItems<St>, S> { self._fields.0 = Option::Some(value.into()); HiddenPostsPrefBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> HiddenPostsPrefBuilder<St, S>where St: hidden_posts_pref_state::State, St::Items: hidden_posts_pref_state::IsSet,{ /// Build the final struct. pub fn build(self) -> HiddenPostsPref<S> { HiddenPostsPref { items: self._fields.0.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> HiddenPostsPref<S> { HiddenPostsPref { items: self._fields.0.unwrap(), extra_data: Some(extra_data), } }}
pub mod interests_pref_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Tags; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Tags = Unset; } ///State transition - sets the `tags` field to Set pub struct SetTags<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetTags<St> {} impl<St: State> State for SetTags<St> { type Tags = Set<members::tags>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `tags` field pub struct tags(()); }}
/// Builder for constructing an instance of this type.pub struct InterestsPrefBuilder< St: interests_pref_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: (Option<Vec<S>>,), _type: PhantomData<fn() -> S>,}
impl InterestsPref<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> InterestsPrefBuilder<interests_pref_state::Empty, DefaultStr> { InterestsPrefBuilder::new() }}
impl<S: BosStr> InterestsPref<S> { /// Create a new builder for this type pub fn builder() -> InterestsPrefBuilder<interests_pref_state::Empty, S> { InterestsPrefBuilder::builder() }}
impl InterestsPrefBuilder<interests_pref_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { InterestsPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<S: BosStr> InterestsPrefBuilder<interests_pref_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { InterestsPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<St, S: BosStr> InterestsPrefBuilder<St, S>where St: interests_pref_state::State, St::Tags: interests_pref_state::IsUnset,{ /// Set the `tags` field (required) pub fn tags( mut self, value: impl Into<Vec<S>>, ) -> InterestsPrefBuilder<interests_pref_state::SetTags<St>, S> { self._fields.0 = Option::Some(value.into()); InterestsPrefBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> InterestsPrefBuilder<St, S>where St: interests_pref_state::State, St::Tags: interests_pref_state::IsSet,{ /// Build the final struct. pub fn build(self) -> InterestsPref<S> { InterestsPref { tags: self._fields.0.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> InterestsPref<S> { InterestsPref { tags: self._fields.0.unwrap(), extra_data: Some(extra_data), } }}
pub mod known_followers_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Count; type Followers; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Count = Unset; type Followers = Unset; } ///State transition - sets the `count` field to Set pub struct SetCount<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetCount<St> {} impl<St: State> State for SetCount<St> { type Count = Set<members::count>; type Followers = St::Followers; } ///State transition - sets the `followers` field to Set pub struct SetFollowers<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetFollowers<St> {} impl<St: State> State for SetFollowers<St> { type Count = St::Count; type Followers = Set<members::followers>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `count` field pub struct count(()); ///Marker type for the `followers` field pub struct followers(()); }}
/// Builder for constructing an instance of this type.pub struct KnownFollowersBuilder< St: known_followers_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: (Option<i64>, Option<Vec<actor::ProfileViewBasic<S>>>), _type: PhantomData<fn() -> S>,}
impl KnownFollowers<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> KnownFollowersBuilder<known_followers_state::Empty, DefaultStr> { KnownFollowersBuilder::new() }}
impl<S: BosStr> KnownFollowers<S> { /// Create a new builder for this type pub fn builder() -> KnownFollowersBuilder<known_followers_state::Empty, S> { KnownFollowersBuilder::builder() }}
impl KnownFollowersBuilder<known_followers_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { KnownFollowersBuilder { _state: PhantomData, _fields: (None, None), _type: PhantomData, } }}
impl<S: BosStr> KnownFollowersBuilder<known_followers_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { KnownFollowersBuilder { _state: PhantomData, _fields: (None, None), _type: PhantomData, } }}
impl<St, S: BosStr> KnownFollowersBuilder<St, S>where St: known_followers_state::State, St::Count: known_followers_state::IsUnset,{ /// Set the `count` field (required) pub fn count( mut self, value: impl Into<i64>, ) -> KnownFollowersBuilder<known_followers_state::SetCount<St>, S> { self._fields.0 = Option::Some(value.into()); KnownFollowersBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> KnownFollowersBuilder<St, S>where St: known_followers_state::State, St::Followers: known_followers_state::IsUnset,{ /// Set the `followers` field (required) pub fn followers( mut self, value: impl Into<Vec<actor::ProfileViewBasic<S>>>, ) -> KnownFollowersBuilder<known_followers_state::SetFollowers<St>, S> { self._fields.1 = Option::Some(value.into()); KnownFollowersBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> KnownFollowersBuilder<St, S>where St: known_followers_state::State, St::Count: known_followers_state::IsSet, St::Followers: known_followers_state::IsSet,{ /// Build the final struct. pub fn build(self) -> KnownFollowers<S> { KnownFollowers { count: self._fields.0.unwrap(), followers: self._fields.1.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> KnownFollowers<S> { KnownFollowers { count: self._fields.0.unwrap(), followers: self._fields.1.unwrap(), extra_data: Some(extra_data), } }}
pub mod labeler_pref_item_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Did = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetDid<St> {} impl<St: State> State for SetDid<St> { type Did = Set<members::did>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `did` field pub struct did(()); }}
/// Builder for constructing an instance of this type.pub struct LabelerPrefItemBuilder< St: labeler_pref_item_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: (Option<Did<S>>,), _type: PhantomData<fn() -> S>,}
impl LabelerPrefItem<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> LabelerPrefItemBuilder<labeler_pref_item_state::Empty, DefaultStr> { LabelerPrefItemBuilder::new() }}
impl<S: BosStr> LabelerPrefItem<S> { /// Create a new builder for this type pub fn builder() -> LabelerPrefItemBuilder<labeler_pref_item_state::Empty, S> { LabelerPrefItemBuilder::builder() }}
impl LabelerPrefItemBuilder<labeler_pref_item_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { LabelerPrefItemBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<S: BosStr> LabelerPrefItemBuilder<labeler_pref_item_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { LabelerPrefItemBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<St, S: BosStr> LabelerPrefItemBuilder<St, S>where St: labeler_pref_item_state::State, St::Did: labeler_pref_item_state::IsUnset,{ /// Set the `did` field (required) pub fn did( mut self, value: impl Into<Did<S>>, ) -> LabelerPrefItemBuilder<labeler_pref_item_state::SetDid<St>, S> { self._fields.0 = Option::Some(value.into()); LabelerPrefItemBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> LabelerPrefItemBuilder<St, S>where St: labeler_pref_item_state::State, St::Did: labeler_pref_item_state::IsSet,{ /// Build the final struct. pub fn build(self) -> LabelerPrefItem<S> { LabelerPrefItem { did: self._fields.0.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> LabelerPrefItem<S> { LabelerPrefItem { did: self._fields.0.unwrap(), extra_data: Some(extra_data), } }}
pub mod labelers_pref_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Labelers; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Labelers = Unset; } ///State transition - sets the `labelers` field to Set pub struct SetLabelers<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetLabelers<St> {} impl<St: State> State for SetLabelers<St> { type Labelers = Set<members::labelers>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `labelers` field pub struct labelers(()); }}
/// Builder for constructing an instance of this type.pub struct LabelersPrefBuilder<St: labelers_pref_state::State, S: BosStr = DefaultStr> { _state: PhantomData<fn() -> St>, _fields: (Option<Vec<actor::LabelerPrefItem<S>>>,), _type: PhantomData<fn() -> S>,}
impl LabelersPref<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> LabelersPrefBuilder<labelers_pref_state::Empty, DefaultStr> { LabelersPrefBuilder::new() }}
impl<S: BosStr> LabelersPref<S> { /// Create a new builder for this type pub fn builder() -> LabelersPrefBuilder<labelers_pref_state::Empty, S> { LabelersPrefBuilder::builder() }}
impl LabelersPrefBuilder<labelers_pref_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { LabelersPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<S: BosStr> LabelersPrefBuilder<labelers_pref_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { LabelersPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<St, S: BosStr> LabelersPrefBuilder<St, S>where St: labelers_pref_state::State, St::Labelers: labelers_pref_state::IsUnset,{ /// Set the `labelers` field (required) pub fn labelers( mut self, value: impl Into<Vec<actor::LabelerPrefItem<S>>>, ) -> LabelersPrefBuilder<labelers_pref_state::SetLabelers<St>, S> { self._fields.0 = Option::Some(value.into()); LabelersPrefBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> LabelersPrefBuilder<St, S>where St: labelers_pref_state::State, St::Labelers: labelers_pref_state::IsSet,{ /// Build the final struct. pub fn build(self) -> LabelersPref<S> { LabelersPref { labelers: self._fields.0.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> LabelersPref<S> { LabelersPref { labelers: self._fields.0.unwrap(), extra_data: Some(extra_data), } }}
fn _default_live_event_preferences_hide_all_feeds() -> Option<bool> { Some(false)}
impl Default for LiveEventPreferences { fn default() -> Self { Self { hidden_feed_ids: None, hide_all_feeds: Some(false), extra_data: Default::default(), } }}
pub mod muted_word_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Targets; type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Targets = Unset; type Value = Unset; } ///State transition - sets the `targets` field to Set pub struct SetTargets<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetTargets<St> {} impl<St: State> State for SetTargets<St> { type Targets = Set<members::targets>; type Value = St::Value; } ///State transition - sets the `value` field to Set pub struct SetValue<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetValue<St> {} impl<St: State> State for SetValue<St> { type Targets = St::Targets; type Value = Set<members::value>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `targets` field pub struct targets(()); ///Marker type for the `value` field pub struct value(()); }}
/// Builder for constructing an instance of this type.pub struct MutedWordBuilder<St: muted_word_state::State, S: BosStr = DefaultStr> { _state: PhantomData<fn() -> St>, _fields: ( Option<MutedWordActorTarget<S>>, Option<Datetime>, Option<S>, Option<Vec<actor::MutedWordTarget<S>>>, Option<S>, ), _type: PhantomData<fn() -> S>,}
impl MutedWord<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> MutedWordBuilder<muted_word_state::Empty, DefaultStr> { MutedWordBuilder::new() }}
impl<S: BosStr> MutedWord<S> { /// Create a new builder for this type pub fn builder() -> MutedWordBuilder<muted_word_state::Empty, S> { MutedWordBuilder::builder() }}
impl MutedWordBuilder<muted_word_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { MutedWordBuilder { _state: PhantomData, _fields: (None, None, None, None, None), _type: PhantomData, } }}
impl<S: BosStr> MutedWordBuilder<muted_word_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { MutedWordBuilder { _state: PhantomData, _fields: (None, None, None, None, None), _type: PhantomData, } }}
impl<St: muted_word_state::State, S: BosStr> MutedWordBuilder<St, S> { /// Set the `actorTarget` field (optional) pub fn actor_target( mut self, value: impl Into<Option<MutedWordActorTarget<S>>>, ) -> Self { self._fields.0 = value.into(); self } /// Set the `actorTarget` field to an Option value (optional) pub fn maybe_actor_target(mut self, value: Option<MutedWordActorTarget<S>>) -> Self { self._fields.0 = value; self }}
impl<St: muted_word_state::State, S: BosStr> MutedWordBuilder<St, S> { /// Set the `expiresAt` field (optional) pub fn expires_at(mut self, value: impl Into<Option<Datetime>>) -> Self { self._fields.1 = value.into(); self } /// Set the `expiresAt` field to an Option value (optional) pub fn maybe_expires_at(mut self, value: Option<Datetime>) -> Self { self._fields.1 = value; self }}
impl<St: muted_word_state::State, S: BosStr> MutedWordBuilder<St, S> { /// Set the `id` field (optional) pub fn id(mut self, value: impl Into<Option<S>>) -> Self { self._fields.2 = value.into(); self } /// Set the `id` field to an Option value (optional) pub fn maybe_id(mut self, value: Option<S>) -> Self { self._fields.2 = value; self }}
impl<St, S: BosStr> MutedWordBuilder<St, S>where St: muted_word_state::State, St::Targets: muted_word_state::IsUnset,{ /// Set the `targets` field (required) pub fn targets( mut self, value: impl Into<Vec<actor::MutedWordTarget<S>>>, ) -> MutedWordBuilder<muted_word_state::SetTargets<St>, S> { self._fields.3 = Option::Some(value.into()); MutedWordBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> MutedWordBuilder<St, S>where St: muted_word_state::State, St::Value: muted_word_state::IsUnset,{ /// Set the `value` field (required) pub fn value( mut self, value: impl Into<S>, ) -> MutedWordBuilder<muted_word_state::SetValue<St>, S> { self._fields.4 = Option::Some(value.into()); MutedWordBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> MutedWordBuilder<St, S>where St: muted_word_state::State, St::Targets: muted_word_state::IsSet, St::Value: muted_word_state::IsSet,{ /// Build the final struct. pub fn build(self) -> MutedWord<S> { MutedWord { actor_target: self._fields.0, expires_at: self._fields.1, id: self._fields.2, targets: self._fields.3.unwrap(), value: self._fields.4.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> MutedWord<S> { MutedWord { actor_target: self._fields.0, expires_at: self._fields.1, id: self._fields.2, targets: self._fields.3.unwrap(), value: self._fields.4.unwrap(), extra_data: Some(extra_data), } }}
pub mod muted_words_pref_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Items; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Items = Unset; } ///State transition - sets the `items` field to Set pub struct SetItems<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetItems<St> {} impl<St: State> State for SetItems<St> { type Items = Set<members::items>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `items` field pub struct items(()); }}
/// Builder for constructing an instance of this type.pub struct MutedWordsPrefBuilder< St: muted_words_pref_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: (Option<Vec<actor::MutedWord<S>>>,), _type: PhantomData<fn() -> S>,}
impl MutedWordsPref<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> MutedWordsPrefBuilder<muted_words_pref_state::Empty, DefaultStr> { MutedWordsPrefBuilder::new() }}
impl<S: BosStr> MutedWordsPref<S> { /// Create a new builder for this type pub fn builder() -> MutedWordsPrefBuilder<muted_words_pref_state::Empty, S> { MutedWordsPrefBuilder::builder() }}
impl MutedWordsPrefBuilder<muted_words_pref_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { MutedWordsPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<S: BosStr> MutedWordsPrefBuilder<muted_words_pref_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { MutedWordsPrefBuilder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<St, S: BosStr> MutedWordsPrefBuilder<St, S>where St: muted_words_pref_state::State, St::Items: muted_words_pref_state::IsUnset,{ /// Set the `items` field (required) pub fn items( mut self, value: impl Into<Vec<actor::MutedWord<S>>>, ) -> MutedWordsPrefBuilder<muted_words_pref_state::SetItems<St>, S> { self._fields.0 = Option::Some(value.into()); MutedWordsPrefBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> MutedWordsPrefBuilder<St, S>where St: muted_words_pref_state::State, St::Items: muted_words_pref_state::IsSet,{ /// Build the final struct. pub fn build(self) -> MutedWordsPref<S> { MutedWordsPref { items: self._fields.0.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> MutedWordsPref<S> { MutedWordsPref { items: self._fields.0.unwrap(), extra_data: Some(extra_data), } }}
fn _default_nux_completed() -> bool { false}
pub mod nux_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Completed; type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Completed = Unset; type Id = Unset; } ///State transition - sets the `completed` field to Set pub struct SetCompleted<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetCompleted<St> {} impl<St: State> State for SetCompleted<St> { type Completed = Set<members::completed>; type Id = St::Id; } ///State transition - sets the `id` field to Set pub struct SetId<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetId<St> {} impl<St: State> State for SetId<St> { type Completed = St::Completed; type Id = Set<members::id>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `completed` field pub struct completed(()); ///Marker type for the `id` field pub struct id(()); }}
/// Builder for constructing an instance of this type.pub struct NuxBuilder<St: nux_state::State, S: BosStr = DefaultStr> { _state: PhantomData<fn() -> St>, _fields: (Option<bool>, Option<S>, Option<Datetime>, Option<S>), _type: PhantomData<fn() -> S>,}
impl Nux<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> NuxBuilder<nux_state::Empty, DefaultStr> { NuxBuilder::new() }}
impl<S: BosStr> Nux<S> { /// Create a new builder for this type pub fn builder() -> NuxBuilder<nux_state::Empty, S> { NuxBuilder::builder() }}
impl NuxBuilder<nux_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { NuxBuilder { _state: PhantomData, _fields: (None, None, None, None), _type: PhantomData, } }}
impl<S: BosStr> NuxBuilder<nux_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { NuxBuilder { _state: PhantomData, _fields: (None, None, None, None), _type: PhantomData, } }}
impl<St, S: BosStr> NuxBuilder<St, S>where St: nux_state::State, St::Completed: nux_state::IsUnset,{ /// Set the `completed` field (required) pub fn completed( mut self, value: impl Into<bool>, ) -> NuxBuilder<nux_state::SetCompleted<St>, S> { self._fields.0 = Option::Some(value.into()); NuxBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St: nux_state::State, S: BosStr> NuxBuilder<St, S> { /// Set the `data` field (optional) pub fn data(mut self, value: impl Into<Option<S>>) -> Self { self._fields.1 = value.into(); self } /// Set the `data` field to an Option value (optional) pub fn maybe_data(mut self, value: Option<S>) -> Self { self._fields.1 = value; self }}
impl<St: nux_state::State, S: BosStr> NuxBuilder<St, S> { /// Set the `expiresAt` field (optional) pub fn expires_at(mut self, value: impl Into<Option<Datetime>>) -> Self { self._fields.2 = value.into(); self } /// Set the `expiresAt` field to an Option value (optional) pub fn maybe_expires_at(mut self, value: Option<Datetime>) -> Self { self._fields.2 = value; self }}
impl<St, S: BosStr> NuxBuilder<St, S>where St: nux_state::State, St::Id: nux_state::IsUnset,{ /// Set the `id` field (required) pub fn id(mut self, value: impl Into<S>) -> NuxBuilder<nux_state::SetId<St>, S> { self._fields.3 = Option::Some(value.into()); NuxBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> NuxBuilder<St, S>where St: nux_state::State, St::Completed: nux_state::IsSet, St::Id: nux_state::IsSet,{ /// Build the final struct. pub fn build(self) -> Nux<S> { Nux { completed: self._fields.0.unwrap(), data: self._fields.1, expires_at: self._fields.2, id: self._fields.3.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data(self, extra_data: BTreeMap<SmolStr, Data<S>>) -> Nux<S> { Nux { completed: self._fields.0.unwrap(), data: self._fields.1, expires_at: self._fields.2, id: self._fields.3.unwrap(), extra_data: Some(extra_data), } }}
pub mod profile_associated_germ_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type MessageMeUrl; type ShowButtonTo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type MessageMeUrl = Unset; type ShowButtonTo = Unset; } ///State transition - sets the `message_me_url` field to Set pub struct SetMessageMeUrl<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetMessageMeUrl<St> {} impl<St: State> State for SetMessageMeUrl<St> { type MessageMeUrl = Set<members::message_me_url>; type ShowButtonTo = St::ShowButtonTo; } ///State transition - sets the `show_button_to` field to Set pub struct SetShowButtonTo<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetShowButtonTo<St> {} impl<St: State> State for SetShowButtonTo<St> { type MessageMeUrl = St::MessageMeUrl; type ShowButtonTo = Set<members::show_button_to>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `message_me_url` field pub struct message_me_url(()); ///Marker type for the `show_button_to` field pub struct show_button_to(()); }}
/// Builder for constructing an instance of this type.pub struct ProfileAssociatedGermBuilder< St: profile_associated_germ_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: (Option<UriValue<S>>, Option<ProfileAssociatedGermShowButtonTo<S>>), _type: PhantomData<fn() -> S>,}
impl ProfileAssociatedGerm<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> ProfileAssociatedGermBuilder< profile_associated_germ_state::Empty, DefaultStr, > { ProfileAssociatedGermBuilder::new() }}
impl<S: BosStr> ProfileAssociatedGerm<S> { /// Create a new builder for this type pub fn builder() -> ProfileAssociatedGermBuilder< profile_associated_germ_state::Empty, S, > { ProfileAssociatedGermBuilder::builder() }}
impl ProfileAssociatedGermBuilder<profile_associated_germ_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { ProfileAssociatedGermBuilder { _state: PhantomData, _fields: (None, None), _type: PhantomData, } }}
impl<S: BosStr> ProfileAssociatedGermBuilder<profile_associated_germ_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { ProfileAssociatedGermBuilder { _state: PhantomData, _fields: (None, None), _type: PhantomData, } }}
impl<St, S: BosStr> ProfileAssociatedGermBuilder<St, S>where St: profile_associated_germ_state::State, St::MessageMeUrl: profile_associated_germ_state::IsUnset,{ /// Set the `messageMeUrl` field (required) pub fn message_me_url( mut self, value: impl Into<UriValue<S>>, ) -> ProfileAssociatedGermBuilder< profile_associated_germ_state::SetMessageMeUrl<St>, S, > { self._fields.0 = Option::Some(value.into()); ProfileAssociatedGermBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> ProfileAssociatedGermBuilder<St, S>where St: profile_associated_germ_state::State, St::ShowButtonTo: profile_associated_germ_state::IsUnset,{ /// Set the `showButtonTo` field (required) pub fn show_button_to( mut self, value: impl Into<ProfileAssociatedGermShowButtonTo<S>>, ) -> ProfileAssociatedGermBuilder< profile_associated_germ_state::SetShowButtonTo<St>, S, > { self._fields.1 = Option::Some(value.into()); ProfileAssociatedGermBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> ProfileAssociatedGermBuilder<St, S>where St: profile_associated_germ_state::State, St::MessageMeUrl: profile_associated_germ_state::IsSet, St::ShowButtonTo: profile_associated_germ_state::IsSet,{ /// Build the final struct. pub fn build(self) -> ProfileAssociatedGerm<S> { ProfileAssociatedGerm { message_me_url: self._fields.0.unwrap(), show_button_to: self._fields.1.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> ProfileAssociatedGerm<S> { ProfileAssociatedGerm { message_me_url: self._fields.0.unwrap(), show_button_to: self._fields.1.unwrap(), extra_data: Some(extra_data), } }}
pub mod profile_view_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Did; type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Did = Unset; type Handle = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetDid<St> {} impl<St: State> State for SetDid<St> { type Did = Set<members::did>; type Handle = St::Handle; } ///State transition - sets the `handle` field to Set pub struct SetHandle<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetHandle<St> {} impl<St: State> State for SetHandle<St> { type Did = St::Did; type Handle = Set<members::handle>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `did` field pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); }}
/// Builder for constructing an instance of this type.pub struct ProfileViewBuilder<St: profile_view_state::State, S: BosStr = DefaultStr> { _state: PhantomData<fn() -> St>, _fields: ( Option<actor::ProfileAssociated<S>>, Option<UriValue<S>>, Option<Datetime>, Option<Data<S>>, Option<S>, Option<Did<S>>, Option<S>, Option<Handle<S>>, Option<Datetime>, Option<Vec<Label<S>>>, Option<S>, Option<actor::StatusView<S>>, Option<actor::VerificationState<S>>, Option<actor::ViewerState<S>>, ), _type: PhantomData<fn() -> S>,}
impl ProfileView<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> ProfileViewBuilder<profile_view_state::Empty, DefaultStr> { ProfileViewBuilder::new() }}
impl<S: BosStr> ProfileView<S> { /// Create a new builder for this type pub fn builder() -> ProfileViewBuilder<profile_view_state::Empty, S> { ProfileViewBuilder::builder() }}
impl ProfileViewBuilder<profile_view_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { ProfileViewBuilder { _state: PhantomData, _fields: ( None, None, None, None, None, None, None, None, None, None, None, None, None, None, ), _type: PhantomData, } }}
impl<S: BosStr> ProfileViewBuilder<profile_view_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { ProfileViewBuilder { _state: PhantomData, _fields: ( None, None, None, None, None, None, None, None, None, None, None, None, None, None, ), _type: PhantomData, } }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `associated` field (optional) pub fn associated( mut self, value: impl Into<Option<actor::ProfileAssociated<S>>>, ) -> Self { self._fields.0 = value.into(); self } /// Set the `associated` field to an Option value (optional) pub fn maybe_associated( mut self, value: Option<actor::ProfileAssociated<S>>, ) -> Self { self._fields.0 = value; self }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `avatar` field (optional) pub fn avatar(mut self, value: impl Into<Option<UriValue<S>>>) -> Self { self._fields.1 = value.into(); self } /// Set the `avatar` field to an Option value (optional) pub fn maybe_avatar(mut self, value: Option<UriValue<S>>) -> Self { self._fields.1 = value; self }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `createdAt` field (optional) pub fn created_at(mut self, value: impl Into<Option<Datetime>>) -> Self { self._fields.2 = value.into(); self } /// Set the `createdAt` field to an Option value (optional) pub fn maybe_created_at(mut self, value: Option<Datetime>) -> Self { self._fields.2 = value; self }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `debug` field (optional) pub fn debug(mut self, value: impl Into<Option<Data<S>>>) -> Self { self._fields.3 = value.into(); self } /// Set the `debug` field to an Option value (optional) pub fn maybe_debug(mut self, value: Option<Data<S>>) -> Self { self._fields.3 = value; self }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `description` field (optional) pub fn description(mut self, value: impl Into<Option<S>>) -> Self { self._fields.4 = value.into(); self } /// Set the `description` field to an Option value (optional) pub fn maybe_description(mut self, value: Option<S>) -> Self { self._fields.4 = value; self }}
impl<St, S: BosStr> ProfileViewBuilder<St, S>where St: profile_view_state::State, St::Did: profile_view_state::IsUnset,{ /// Set the `did` field (required) pub fn did( mut self, value: impl Into<Did<S>>, ) -> ProfileViewBuilder<profile_view_state::SetDid<St>, S> { self._fields.5 = Option::Some(value.into()); ProfileViewBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `displayName` field (optional) pub fn display_name(mut self, value: impl Into<Option<S>>) -> Self { self._fields.6 = value.into(); self } /// Set the `displayName` field to an Option value (optional) pub fn maybe_display_name(mut self, value: Option<S>) -> Self { self._fields.6 = value; self }}
impl<St, S: BosStr> ProfileViewBuilder<St, S>where St: profile_view_state::State, St::Handle: profile_view_state::IsUnset,{ /// Set the `handle` field (required) pub fn handle( mut self, value: impl Into<Handle<S>>, ) -> ProfileViewBuilder<profile_view_state::SetHandle<St>, S> { self._fields.7 = Option::Some(value.into()); ProfileViewBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `indexedAt` field (optional) pub fn indexed_at(mut self, value: impl Into<Option<Datetime>>) -> Self { self._fields.8 = value.into(); self } /// Set the `indexedAt` field to an Option value (optional) pub fn maybe_indexed_at(mut self, value: Option<Datetime>) -> Self { self._fields.8 = value; self }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `labels` field (optional) pub fn labels(mut self, value: impl Into<Option<Vec<Label<S>>>>) -> Self { self._fields.9 = value.into(); self } /// Set the `labels` field to an Option value (optional) pub fn maybe_labels(mut self, value: Option<Vec<Label<S>>>) -> Self { self._fields.9 = value; self }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `pronouns` field (optional) pub fn pronouns(mut self, value: impl Into<Option<S>>) -> Self { self._fields.10 = value.into(); self } /// Set the `pronouns` field to an Option value (optional) pub fn maybe_pronouns(mut self, value: Option<S>) -> Self { self._fields.10 = value; self }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `status` field (optional) pub fn status(mut self, value: impl Into<Option<actor::StatusView<S>>>) -> Self { self._fields.11 = value.into(); self } /// Set the `status` field to an Option value (optional) pub fn maybe_status(mut self, value: Option<actor::StatusView<S>>) -> Self { self._fields.11 = value; self }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `verification` field (optional) pub fn verification( mut self, value: impl Into<Option<actor::VerificationState<S>>>, ) -> Self { self._fields.12 = value.into(); self } /// Set the `verification` field to an Option value (optional) pub fn maybe_verification( mut self, value: Option<actor::VerificationState<S>>, ) -> Self { self._fields.12 = value; self }}
impl<St: profile_view_state::State, S: BosStr> ProfileViewBuilder<St, S> { /// Set the `viewer` field (optional) pub fn viewer(mut self, value: impl Into<Option<actor::ViewerState<S>>>) -> Self { self._fields.13 = value.into(); self } /// Set the `viewer` field to an Option value (optional) pub fn maybe_viewer(mut self, value: Option<actor::ViewerState<S>>) -> Self { self._fields.13 = value; self }}
impl<St, S: BosStr> ProfileViewBuilder<St, S>where St: profile_view_state::State, St::Did: profile_view_state::IsSet, St::Handle: profile_view_state::IsSet,{ /// Build the final struct. pub fn build(self) -> ProfileView<S> { ProfileView { associated: self._fields.0, avatar: self._fields.1, created_at: self._fields.2, debug: self._fields.3, description: self._fields.4, did: self._fields.5.unwrap(), display_name: self._fields.6, handle: self._fields.7.unwrap(), indexed_at: self._fields.8, labels: self._fields.9, pronouns: self._fields.10, status: self._fields.11, verification: self._fields.12, viewer: self._fields.13, extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> ProfileView<S> { ProfileView { associated: self._fields.0, avatar: self._fields.1, created_at: self._fields.2, debug: self._fields.3, description: self._fields.4, did: self._fields.5.unwrap(), display_name: self._fields.6, handle: self._fields.7.unwrap(), indexed_at: self._fields.8, labels: self._fields.9, pronouns: self._fields.10, status: self._fields.11, verification: self._fields.12, viewer: self._fields.13, extra_data: Some(extra_data), } }}
pub mod profile_view_basic_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Did; type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Did = Unset; type Handle = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetDid<St> {} impl<St: State> State for SetDid<St> { type Did = Set<members::did>; type Handle = St::Handle; } ///State transition - sets the `handle` field to Set pub struct SetHandle<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetHandle<St> {} impl<St: State> State for SetHandle<St> { type Did = St::Did; type Handle = Set<members::handle>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `did` field pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); }}
/// Builder for constructing an instance of this type.pub struct ProfileViewBasicBuilder< St: profile_view_basic_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: ( Option<actor::ProfileAssociated<S>>, Option<UriValue<S>>, Option<Datetime>, Option<Data<S>>, Option<Did<S>>, Option<S>, Option<Handle<S>>, Option<Vec<Label<S>>>, Option<S>, Option<actor::StatusView<S>>, Option<actor::VerificationState<S>>, Option<actor::ViewerState<S>>, ), _type: PhantomData<fn() -> S>,}
impl ProfileViewBasic<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> ProfileViewBasicBuilder< profile_view_basic_state::Empty, DefaultStr, > { ProfileViewBasicBuilder::new() }}
impl<S: BosStr> ProfileViewBasic<S> { /// Create a new builder for this type pub fn builder() -> ProfileViewBasicBuilder<profile_view_basic_state::Empty, S> { ProfileViewBasicBuilder::builder() }}
impl ProfileViewBasicBuilder<profile_view_basic_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { ProfileViewBasicBuilder { _state: PhantomData, _fields: ( None, None, None, None, None, None, None, None, None, None, None, None, ), _type: PhantomData, } }}
impl<S: BosStr> ProfileViewBasicBuilder<profile_view_basic_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { ProfileViewBasicBuilder { _state: PhantomData, _fields: ( None, None, None, None, None, None, None, None, None, None, None, None, ), _type: PhantomData, } }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `associated` field (optional) pub fn associated( mut self, value: impl Into<Option<actor::ProfileAssociated<S>>>, ) -> Self { self._fields.0 = value.into(); self } /// Set the `associated` field to an Option value (optional) pub fn maybe_associated( mut self, value: Option<actor::ProfileAssociated<S>>, ) -> Self { self._fields.0 = value; self }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `avatar` field (optional) pub fn avatar(mut self, value: impl Into<Option<UriValue<S>>>) -> Self { self._fields.1 = value.into(); self } /// Set the `avatar` field to an Option value (optional) pub fn maybe_avatar(mut self, value: Option<UriValue<S>>) -> Self { self._fields.1 = value; self }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `createdAt` field (optional) pub fn created_at(mut self, value: impl Into<Option<Datetime>>) -> Self { self._fields.2 = value.into(); self } /// Set the `createdAt` field to an Option value (optional) pub fn maybe_created_at(mut self, value: Option<Datetime>) -> Self { self._fields.2 = value; self }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `debug` field (optional) pub fn debug(mut self, value: impl Into<Option<Data<S>>>) -> Self { self._fields.3 = value.into(); self } /// Set the `debug` field to an Option value (optional) pub fn maybe_debug(mut self, value: Option<Data<S>>) -> Self { self._fields.3 = value; self }}
impl<St, S: BosStr> ProfileViewBasicBuilder<St, S>where St: profile_view_basic_state::State, St::Did: profile_view_basic_state::IsUnset,{ /// Set the `did` field (required) pub fn did( mut self, value: impl Into<Did<S>>, ) -> ProfileViewBasicBuilder<profile_view_basic_state::SetDid<St>, S> { self._fields.4 = Option::Some(value.into()); ProfileViewBasicBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `displayName` field (optional) pub fn display_name(mut self, value: impl Into<Option<S>>) -> Self { self._fields.5 = value.into(); self } /// Set the `displayName` field to an Option value (optional) pub fn maybe_display_name(mut self, value: Option<S>) -> Self { self._fields.5 = value; self }}
impl<St, S: BosStr> ProfileViewBasicBuilder<St, S>where St: profile_view_basic_state::State, St::Handle: profile_view_basic_state::IsUnset,{ /// Set the `handle` field (required) pub fn handle( mut self, value: impl Into<Handle<S>>, ) -> ProfileViewBasicBuilder<profile_view_basic_state::SetHandle<St>, S> { self._fields.6 = Option::Some(value.into()); ProfileViewBasicBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `labels` field (optional) pub fn labels(mut self, value: impl Into<Option<Vec<Label<S>>>>) -> Self { self._fields.7 = value.into(); self } /// Set the `labels` field to an Option value (optional) pub fn maybe_labels(mut self, value: Option<Vec<Label<S>>>) -> Self { self._fields.7 = value; self }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `pronouns` field (optional) pub fn pronouns(mut self, value: impl Into<Option<S>>) -> Self { self._fields.8 = value.into(); self } /// Set the `pronouns` field to an Option value (optional) pub fn maybe_pronouns(mut self, value: Option<S>) -> Self { self._fields.8 = value; self }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `status` field (optional) pub fn status(mut self, value: impl Into<Option<actor::StatusView<S>>>) -> Self { self._fields.9 = value.into(); self } /// Set the `status` field to an Option value (optional) pub fn maybe_status(mut self, value: Option<actor::StatusView<S>>) -> Self { self._fields.9 = value; self }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `verification` field (optional) pub fn verification( mut self, value: impl Into<Option<actor::VerificationState<S>>>, ) -> Self { self._fields.10 = value.into(); self } /// Set the `verification` field to an Option value (optional) pub fn maybe_verification( mut self, value: Option<actor::VerificationState<S>>, ) -> Self { self._fields.10 = value; self }}
impl<St: profile_view_basic_state::State, S: BosStr> ProfileViewBasicBuilder<St, S> { /// Set the `viewer` field (optional) pub fn viewer(mut self, value: impl Into<Option<actor::ViewerState<S>>>) -> Self { self._fields.11 = value.into(); self } /// Set the `viewer` field to an Option value (optional) pub fn maybe_viewer(mut self, value: Option<actor::ViewerState<S>>) -> Self { self._fields.11 = value; self }}
impl<St, S: BosStr> ProfileViewBasicBuilder<St, S>where St: profile_view_basic_state::State, St::Did: profile_view_basic_state::IsSet, St::Handle: profile_view_basic_state::IsSet,{ /// Build the final struct. pub fn build(self) -> ProfileViewBasic<S> { ProfileViewBasic { associated: self._fields.0, avatar: self._fields.1, created_at: self._fields.2, debug: self._fields.3, did: self._fields.4.unwrap(), display_name: self._fields.5, handle: self._fields.6.unwrap(), labels: self._fields.7, pronouns: self._fields.8, status: self._fields.9, verification: self._fields.10, viewer: self._fields.11, extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> ProfileViewBasic<S> { ProfileViewBasic { associated: self._fields.0, avatar: self._fields.1, created_at: self._fields.2, debug: self._fields.3, did: self._fields.4.unwrap(), display_name: self._fields.5, handle: self._fields.6.unwrap(), labels: self._fields.7, pronouns: self._fields.8, status: self._fields.9, verification: self._fields.10, viewer: self._fields.11, extra_data: Some(extra_data), } }}
pub mod profile_view_detailed_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Did; type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Did = Unset; type Handle = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetDid<St> {} impl<St: State> State for SetDid<St> { type Did = Set<members::did>; type Handle = St::Handle; } ///State transition - sets the `handle` field to Set pub struct SetHandle<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetHandle<St> {} impl<St: State> State for SetHandle<St> { type Did = St::Did; type Handle = Set<members::handle>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `did` field pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); }}
/// Builder for constructing an instance of this type.pub struct ProfileViewDetailedBuilder< St: profile_view_detailed_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: ( Option<actor::ProfileAssociated<S>>, Option<UriValue<S>>, Option<UriValue<S>>, Option<Datetime>, Option<Data<S>>, Option<S>, Option<Did<S>>, Option<S>, Option<i64>, Option<i64>, Option<Handle<S>>, Option<Datetime>, Option<Data<S>>, Option<Vec<Label<S>>>, Option<StrongRef<S>>, Option<i64>, Option<S>, Option<actor::StatusView<S>>, Option<actor::VerificationState<S>>, Option<actor::ViewerState<S>>, Option<UriValue<S>>, ), _type: PhantomData<fn() -> S>,}
impl ProfileViewDetailed<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> ProfileViewDetailedBuilder< profile_view_detailed_state::Empty, DefaultStr, > { ProfileViewDetailedBuilder::new() }}
impl<S: BosStr> ProfileViewDetailed<S> { /// Create a new builder for this type pub fn builder() -> ProfileViewDetailedBuilder< profile_view_detailed_state::Empty, S, > { ProfileViewDetailedBuilder::builder() }}
impl ProfileViewDetailedBuilder<profile_view_detailed_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { ProfileViewDetailedBuilder { _state: PhantomData, _fields: ( None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, ), _type: PhantomData, } }}
impl<S: BosStr> ProfileViewDetailedBuilder<profile_view_detailed_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { ProfileViewDetailedBuilder { _state: PhantomData, _fields: ( None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, ), _type: PhantomData, } }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `associated` field (optional) pub fn associated( mut self, value: impl Into<Option<actor::ProfileAssociated<S>>>, ) -> Self { self._fields.0 = value.into(); self } /// Set the `associated` field to an Option value (optional) pub fn maybe_associated( mut self, value: Option<actor::ProfileAssociated<S>>, ) -> Self { self._fields.0 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `avatar` field (optional) pub fn avatar(mut self, value: impl Into<Option<UriValue<S>>>) -> Self { self._fields.1 = value.into(); self } /// Set the `avatar` field to an Option value (optional) pub fn maybe_avatar(mut self, value: Option<UriValue<S>>) -> Self { self._fields.1 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `banner` field (optional) pub fn banner(mut self, value: impl Into<Option<UriValue<S>>>) -> Self { self._fields.2 = value.into(); self } /// Set the `banner` field to an Option value (optional) pub fn maybe_banner(mut self, value: Option<UriValue<S>>) -> Self { self._fields.2 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `createdAt` field (optional) pub fn created_at(mut self, value: impl Into<Option<Datetime>>) -> Self { self._fields.3 = value.into(); self } /// Set the `createdAt` field to an Option value (optional) pub fn maybe_created_at(mut self, value: Option<Datetime>) -> Self { self._fields.3 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `debug` field (optional) pub fn debug(mut self, value: impl Into<Option<Data<S>>>) -> Self { self._fields.4 = value.into(); self } /// Set the `debug` field to an Option value (optional) pub fn maybe_debug(mut self, value: Option<Data<S>>) -> Self { self._fields.4 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `description` field (optional) pub fn description(mut self, value: impl Into<Option<S>>) -> Self { self._fields.5 = value.into(); self } /// Set the `description` field to an Option value (optional) pub fn maybe_description(mut self, value: Option<S>) -> Self { self._fields.5 = value; self }}
impl<St, S: BosStr> ProfileViewDetailedBuilder<St, S>where St: profile_view_detailed_state::State, St::Did: profile_view_detailed_state::IsUnset,{ /// Set the `did` field (required) pub fn did( mut self, value: impl Into<Did<S>>, ) -> ProfileViewDetailedBuilder<profile_view_detailed_state::SetDid<St>, S> { self._fields.6 = Option::Some(value.into()); ProfileViewDetailedBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `displayName` field (optional) pub fn display_name(mut self, value: impl Into<Option<S>>) -> Self { self._fields.7 = value.into(); self } /// Set the `displayName` field to an Option value (optional) pub fn maybe_display_name(mut self, value: Option<S>) -> Self { self._fields.7 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `followersCount` field (optional) pub fn followers_count(mut self, value: impl Into<Option<i64>>) -> Self { self._fields.8 = value.into(); self } /// Set the `followersCount` field to an Option value (optional) pub fn maybe_followers_count(mut self, value: Option<i64>) -> Self { self._fields.8 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `followsCount` field (optional) pub fn follows_count(mut self, value: impl Into<Option<i64>>) -> Self { self._fields.9 = value.into(); self } /// Set the `followsCount` field to an Option value (optional) pub fn maybe_follows_count(mut self, value: Option<i64>) -> Self { self._fields.9 = value; self }}
impl<St, S: BosStr> ProfileViewDetailedBuilder<St, S>where St: profile_view_detailed_state::State, St::Handle: profile_view_detailed_state::IsUnset,{ /// Set the `handle` field (required) pub fn handle( mut self, value: impl Into<Handle<S>>, ) -> ProfileViewDetailedBuilder<profile_view_detailed_state::SetHandle<St>, S> { self._fields.10 = Option::Some(value.into()); ProfileViewDetailedBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `indexedAt` field (optional) pub fn indexed_at(mut self, value: impl Into<Option<Datetime>>) -> Self { self._fields.11 = value.into(); self } /// Set the `indexedAt` field to an Option value (optional) pub fn maybe_indexed_at(mut self, value: Option<Datetime>) -> Self { self._fields.11 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `joinedViaStarterPack` field (optional) pub fn joined_via_starter_pack(mut self, value: impl Into<Option<Data<S>>>) -> Self { self._fields.12 = value.into(); self } /// Set the `joinedViaStarterPack` field to an Option value (optional) pub fn maybe_joined_via_starter_pack(mut self, value: Option<Data<S>>) -> Self { self._fields.12 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `labels` field (optional) pub fn labels(mut self, value: impl Into<Option<Vec<Label<S>>>>) -> Self { self._fields.13 = value.into(); self } /// Set the `labels` field to an Option value (optional) pub fn maybe_labels(mut self, value: Option<Vec<Label<S>>>) -> Self { self._fields.13 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `pinnedPost` field (optional) pub fn pinned_post(mut self, value: impl Into<Option<StrongRef<S>>>) -> Self { self._fields.14 = value.into(); self } /// Set the `pinnedPost` field to an Option value (optional) pub fn maybe_pinned_post(mut self, value: Option<StrongRef<S>>) -> Self { self._fields.14 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `postsCount` field (optional) pub fn posts_count(mut self, value: impl Into<Option<i64>>) -> Self { self._fields.15 = value.into(); self } /// Set the `postsCount` field to an Option value (optional) pub fn maybe_posts_count(mut self, value: Option<i64>) -> Self { self._fields.15 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `pronouns` field (optional) pub fn pronouns(mut self, value: impl Into<Option<S>>) -> Self { self._fields.16 = value.into(); self } /// Set the `pronouns` field to an Option value (optional) pub fn maybe_pronouns(mut self, value: Option<S>) -> Self { self._fields.16 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `status` field (optional) pub fn status(mut self, value: impl Into<Option<actor::StatusView<S>>>) -> Self { self._fields.17 = value.into(); self } /// Set the `status` field to an Option value (optional) pub fn maybe_status(mut self, value: Option<actor::StatusView<S>>) -> Self { self._fields.17 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `verification` field (optional) pub fn verification( mut self, value: impl Into<Option<actor::VerificationState<S>>>, ) -> Self { self._fields.18 = value.into(); self } /// Set the `verification` field to an Option value (optional) pub fn maybe_verification( mut self, value: Option<actor::VerificationState<S>>, ) -> Self { self._fields.18 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `viewer` field (optional) pub fn viewer(mut self, value: impl Into<Option<actor::ViewerState<S>>>) -> Self { self._fields.19 = value.into(); self } /// Set the `viewer` field to an Option value (optional) pub fn maybe_viewer(mut self, value: Option<actor::ViewerState<S>>) -> Self { self._fields.19 = value; self }}
impl< St: profile_view_detailed_state::State, S: BosStr,> ProfileViewDetailedBuilder<St, S> { /// Set the `website` field (optional) pub fn website(mut self, value: impl Into<Option<UriValue<S>>>) -> Self { self._fields.20 = value.into(); self } /// Set the `website` field to an Option value (optional) pub fn maybe_website(mut self, value: Option<UriValue<S>>) -> Self { self._fields.20 = value; self }}
impl<St, S: BosStr> ProfileViewDetailedBuilder<St, S>where St: profile_view_detailed_state::State, St::Did: profile_view_detailed_state::IsSet, St::Handle: profile_view_detailed_state::IsSet,{ /// Build the final struct. pub fn build(self) -> ProfileViewDetailed<S> { ProfileViewDetailed { associated: self._fields.0, avatar: self._fields.1, banner: self._fields.2, created_at: self._fields.3, debug: self._fields.4, description: self._fields.5, did: self._fields.6.unwrap(), display_name: self._fields.7, followers_count: self._fields.8, follows_count: self._fields.9, handle: self._fields.10.unwrap(), indexed_at: self._fields.11, joined_via_starter_pack: self._fields.12, labels: self._fields.13, pinned_post: self._fields.14, posts_count: self._fields.15, pronouns: self._fields.16, status: self._fields.17, verification: self._fields.18, viewer: self._fields.19, website: self._fields.20, extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> ProfileViewDetailed<S> { ProfileViewDetailed { associated: self._fields.0, avatar: self._fields.1, banner: self._fields.2, created_at: self._fields.3, debug: self._fields.4, description: self._fields.5, did: self._fields.6.unwrap(), display_name: self._fields.7, followers_count: self._fields.8, follows_count: self._fields.9, handle: self._fields.10.unwrap(), indexed_at: self._fields.11, joined_via_starter_pack: self._fields.12, labels: self._fields.13, pinned_post: self._fields.14, posts_count: self._fields.15, pronouns: self._fields.16, status: self._fields.17, verification: self._fields.18, viewer: self._fields.19, website: self._fields.20, extra_data: Some(extra_data), } }}
pub mod saved_feed_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Id; type Pinned; type Type; type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Id = Unset; type Pinned = Unset; type Type = Unset; type Value = Unset; } ///State transition - sets the `id` field to Set pub struct SetId<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetId<St> {} impl<St: State> State for SetId<St> { type Id = Set<members::id>; type Pinned = St::Pinned; type Type = St::Type; type Value = St::Value; } ///State transition - sets the `pinned` field to Set pub struct SetPinned<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetPinned<St> {} impl<St: State> State for SetPinned<St> { type Id = St::Id; type Pinned = Set<members::pinned>; type Type = St::Type; type Value = St::Value; } ///State transition - sets the `type` field to Set pub struct SetType<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetType<St> {} impl<St: State> State for SetType<St> { type Id = St::Id; type Pinned = St::Pinned; type Type = Set<members::r#type>; type Value = St::Value; } ///State transition - sets the `value` field to Set pub struct SetValue<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetValue<St> {} impl<St: State> State for SetValue<St> { type Id = St::Id; type Pinned = St::Pinned; type Type = St::Type; type Value = Set<members::value>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `id` field pub struct id(()); ///Marker type for the `pinned` field pub struct pinned(()); ///Marker type for the `type` field pub struct r#type(()); ///Marker type for the `value` field pub struct value(()); }}
/// Builder for constructing an instance of this type.pub struct SavedFeedBuilder<St: saved_feed_state::State, S: BosStr = DefaultStr> { _state: PhantomData<fn() -> St>, _fields: (Option<S>, Option<bool>, Option<SavedFeedType<S>>, Option<S>), _type: PhantomData<fn() -> S>,}
impl SavedFeed<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> SavedFeedBuilder<saved_feed_state::Empty, DefaultStr> { SavedFeedBuilder::new() }}
impl<S: BosStr> SavedFeed<S> { /// Create a new builder for this type pub fn builder() -> SavedFeedBuilder<saved_feed_state::Empty, S> { SavedFeedBuilder::builder() }}
impl SavedFeedBuilder<saved_feed_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { SavedFeedBuilder { _state: PhantomData, _fields: (None, None, None, None), _type: PhantomData, } }}
impl<S: BosStr> SavedFeedBuilder<saved_feed_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { SavedFeedBuilder { _state: PhantomData, _fields: (None, None, None, None), _type: PhantomData, } }}
impl<St, S: BosStr> SavedFeedBuilder<St, S>where St: saved_feed_state::State, St::Id: saved_feed_state::IsUnset,{ /// Set the `id` field (required) pub fn id( mut self, value: impl Into<S>, ) -> SavedFeedBuilder<saved_feed_state::SetId<St>, S> { self._fields.0 = Option::Some(value.into()); SavedFeedBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> SavedFeedBuilder<St, S>where St: saved_feed_state::State, St::Pinned: saved_feed_state::IsUnset,{ /// Set the `pinned` field (required) pub fn pinned( mut self, value: impl Into<bool>, ) -> SavedFeedBuilder<saved_feed_state::SetPinned<St>, S> { self._fields.1 = Option::Some(value.into()); SavedFeedBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> SavedFeedBuilder<St, S>where St: saved_feed_state::State, St::Type: saved_feed_state::IsUnset,{ /// Set the `type` field (required) pub fn r#type( mut self, value: impl Into<SavedFeedType<S>>, ) -> SavedFeedBuilder<saved_feed_state::SetType<St>, S> { self._fields.2 = Option::Some(value.into()); SavedFeedBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> SavedFeedBuilder<St, S>where St: saved_feed_state::State, St::Value: saved_feed_state::IsUnset,{ /// Set the `value` field (required) pub fn value( mut self, value: impl Into<S>, ) -> SavedFeedBuilder<saved_feed_state::SetValue<St>, S> { self._fields.3 = Option::Some(value.into()); SavedFeedBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> SavedFeedBuilder<St, S>where St: saved_feed_state::State, St::Id: saved_feed_state::IsSet, St::Pinned: saved_feed_state::IsSet, St::Type: saved_feed_state::IsSet, St::Value: saved_feed_state::IsSet,{ /// Build the final struct. pub fn build(self) -> SavedFeed<S> { SavedFeed { id: self._fields.0.unwrap(), pinned: self._fields.1.unwrap(), r#type: self._fields.2.unwrap(), value: self._fields.3.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> SavedFeed<S> { SavedFeed { id: self._fields.0.unwrap(), pinned: self._fields.1.unwrap(), r#type: self._fields.2.unwrap(), value: self._fields.3.unwrap(), extra_data: Some(extra_data), } }}
pub mod saved_feeds_pref_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Pinned; type Saved; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Pinned = Unset; type Saved = Unset; } ///State transition - sets the `pinned` field to Set pub struct SetPinned<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetPinned<St> {} impl<St: State> State for SetPinned<St> { type Pinned = Set<members::pinned>; type Saved = St::Saved; } ///State transition - sets the `saved` field to Set pub struct SetSaved<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetSaved<St> {} impl<St: State> State for SetSaved<St> { type Pinned = St::Pinned; type Saved = Set<members::saved>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `pinned` field pub struct pinned(()); ///Marker type for the `saved` field pub struct saved(()); }}
/// Builder for constructing an instance of this type.pub struct SavedFeedsPrefBuilder< St: saved_feeds_pref_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: (Option<Vec<AtUri<S>>>, Option<Vec<AtUri<S>>>, Option<i64>), _type: PhantomData<fn() -> S>,}
impl SavedFeedsPref<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> SavedFeedsPrefBuilder<saved_feeds_pref_state::Empty, DefaultStr> { SavedFeedsPrefBuilder::new() }}
impl<S: BosStr> SavedFeedsPref<S> { /// Create a new builder for this type pub fn builder() -> SavedFeedsPrefBuilder<saved_feeds_pref_state::Empty, S> { SavedFeedsPrefBuilder::builder() }}
impl SavedFeedsPrefBuilder<saved_feeds_pref_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { SavedFeedsPrefBuilder { _state: PhantomData, _fields: (None, None, None), _type: PhantomData, } }}
impl<S: BosStr> SavedFeedsPrefBuilder<saved_feeds_pref_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { SavedFeedsPrefBuilder { _state: PhantomData, _fields: (None, None, None), _type: PhantomData, } }}
impl<St, S: BosStr> SavedFeedsPrefBuilder<St, S>where St: saved_feeds_pref_state::State, St::Pinned: saved_feeds_pref_state::IsUnset,{ /// Set the `pinned` field (required) pub fn pinned( mut self, value: impl Into<Vec<AtUri<S>>>, ) -> SavedFeedsPrefBuilder<saved_feeds_pref_state::SetPinned<St>, S> { self._fields.0 = Option::Some(value.into()); SavedFeedsPrefBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> SavedFeedsPrefBuilder<St, S>where St: saved_feeds_pref_state::State, St::Saved: saved_feeds_pref_state::IsUnset,{ /// Set the `saved` field (required) pub fn saved( mut self, value: impl Into<Vec<AtUri<S>>>, ) -> SavedFeedsPrefBuilder<saved_feeds_pref_state::SetSaved<St>, S> { self._fields.1 = Option::Some(value.into()); SavedFeedsPrefBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St: saved_feeds_pref_state::State, S: BosStr> SavedFeedsPrefBuilder<St, S> { /// Set the `timelineIndex` field (optional) pub fn timeline_index(mut self, value: impl Into<Option<i64>>) -> Self { self._fields.2 = value.into(); self } /// Set the `timelineIndex` field to an Option value (optional) pub fn maybe_timeline_index(mut self, value: Option<i64>) -> Self { self._fields.2 = value; self }}
impl<St, S: BosStr> SavedFeedsPrefBuilder<St, S>where St: saved_feeds_pref_state::State, St::Pinned: saved_feeds_pref_state::IsSet, St::Saved: saved_feeds_pref_state::IsSet,{ /// Build the final struct. pub fn build(self) -> SavedFeedsPref<S> { SavedFeedsPref { pinned: self._fields.0.unwrap(), saved: self._fields.1.unwrap(), timeline_index: self._fields.2, extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> SavedFeedsPref<S> { SavedFeedsPref { pinned: self._fields.0.unwrap(), saved: self._fields.1.unwrap(), timeline_index: self._fields.2, extra_data: Some(extra_data), } }}
pub mod saved_feeds_pref_v2_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Items; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Items = Unset; } ///State transition - sets the `items` field to Set pub struct SetItems<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetItems<St> {} impl<St: State> State for SetItems<St> { type Items = Set<members::items>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `items` field pub struct items(()); }}
/// Builder for constructing an instance of this type.pub struct SavedFeedsPrefV2Builder< St: saved_feeds_pref_v2_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: (Option<Vec<actor::SavedFeed<S>>>,), _type: PhantomData<fn() -> S>,}
impl SavedFeedsPrefV2<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> SavedFeedsPrefV2Builder< saved_feeds_pref_v2_state::Empty, DefaultStr, > { SavedFeedsPrefV2Builder::new() }}
impl<S: BosStr> SavedFeedsPrefV2<S> { /// Create a new builder for this type pub fn builder() -> SavedFeedsPrefV2Builder<saved_feeds_pref_v2_state::Empty, S> { SavedFeedsPrefV2Builder::builder() }}
impl SavedFeedsPrefV2Builder<saved_feeds_pref_v2_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { SavedFeedsPrefV2Builder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<S: BosStr> SavedFeedsPrefV2Builder<saved_feeds_pref_v2_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { SavedFeedsPrefV2Builder { _state: PhantomData, _fields: (None,), _type: PhantomData, } }}
impl<St, S: BosStr> SavedFeedsPrefV2Builder<St, S>where St: saved_feeds_pref_v2_state::State, St::Items: saved_feeds_pref_v2_state::IsUnset,{ /// Set the `items` field (required) pub fn items( mut self, value: impl Into<Vec<actor::SavedFeed<S>>>, ) -> SavedFeedsPrefV2Builder<saved_feeds_pref_v2_state::SetItems<St>, S> { self._fields.0 = Option::Some(value.into()); SavedFeedsPrefV2Builder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> SavedFeedsPrefV2Builder<St, S>where St: saved_feeds_pref_v2_state::State, St::Items: saved_feeds_pref_v2_state::IsSet,{ /// Build the final struct. pub fn build(self) -> SavedFeedsPrefV2<S> { SavedFeedsPrefV2 { items: self._fields.0.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> SavedFeedsPrefV2<S> { SavedFeedsPrefV2 { items: self._fields.0.unwrap(), extra_data: Some(extra_data), } }}
pub mod status_view_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Record; type Status; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Record = Unset; type Status = Unset; } ///State transition - sets the `record` field to Set pub struct SetRecord<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetRecord<St> {} impl<St: State> State for SetRecord<St> { type Record = Set<members::record>; type Status = St::Status; } ///State transition - sets the `status` field to Set pub struct SetStatus<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetStatus<St> {} impl<St: State> State for SetStatus<St> { type Record = St::Record; type Status = Set<members::status>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `record` field pub struct record(()); ///Marker type for the `status` field pub struct status(()); }}
/// Builder for constructing an instance of this type.pub struct StatusViewBuilder<St: status_view_state::State, S: BosStr = DefaultStr> { _state: PhantomData<fn() -> St>, _fields: ( Option<Cid<S>>, Option<Data<S>>, Option<Datetime>, Option<bool>, Option<bool>, Option<Vec<Label<S>>>, Option<Data<S>>, Option<StatusViewStatus<S>>, Option<AtUri<S>>, ), _type: PhantomData<fn() -> S>,}
impl StatusView<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> StatusViewBuilder<status_view_state::Empty, DefaultStr> { StatusViewBuilder::new() }}
impl<S: BosStr> StatusView<S> { /// Create a new builder for this type pub fn builder() -> StatusViewBuilder<status_view_state::Empty, S> { StatusViewBuilder::builder() }}
impl StatusViewBuilder<status_view_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { StatusViewBuilder { _state: PhantomData, _fields: (None, None, None, None, None, None, None, None, None), _type: PhantomData, } }}
impl<S: BosStr> StatusViewBuilder<status_view_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { StatusViewBuilder { _state: PhantomData, _fields: (None, None, None, None, None, None, None, None, None), _type: PhantomData, } }}
impl<St: status_view_state::State, S: BosStr> StatusViewBuilder<St, S> { /// Set the `cid` field (optional) pub fn cid(mut self, value: impl Into<Option<Cid<S>>>) -> Self { self._fields.0 = value.into(); self } /// Set the `cid` field to an Option value (optional) pub fn maybe_cid(mut self, value: Option<Cid<S>>) -> Self { self._fields.0 = value; self }}
impl<St: status_view_state::State, S: BosStr> StatusViewBuilder<St, S> { /// Set the `embed` field (optional) pub fn embed(mut self, value: impl Into<Option<Data<S>>>) -> Self { self._fields.1 = value.into(); self } /// Set the `embed` field to an Option value (optional) pub fn maybe_embed(mut self, value: Option<Data<S>>) -> Self { self._fields.1 = value; self }}
impl<St: status_view_state::State, S: BosStr> StatusViewBuilder<St, S> { /// Set the `expiresAt` field (optional) pub fn expires_at(mut self, value: impl Into<Option<Datetime>>) -> Self { self._fields.2 = value.into(); self } /// Set the `expiresAt` field to an Option value (optional) pub fn maybe_expires_at(mut self, value: Option<Datetime>) -> Self { self._fields.2 = value; self }}
impl<St: status_view_state::State, S: BosStr> StatusViewBuilder<St, S> { /// Set the `isActive` field (optional) pub fn is_active(mut self, value: impl Into<Option<bool>>) -> Self { self._fields.3 = value.into(); self } /// Set the `isActive` field to an Option value (optional) pub fn maybe_is_active(mut self, value: Option<bool>) -> Self { self._fields.3 = value; self }}
impl<St: status_view_state::State, S: BosStr> StatusViewBuilder<St, S> { /// Set the `isDisabled` field (optional) pub fn is_disabled(mut self, value: impl Into<Option<bool>>) -> Self { self._fields.4 = value.into(); self } /// Set the `isDisabled` field to an Option value (optional) pub fn maybe_is_disabled(mut self, value: Option<bool>) -> Self { self._fields.4 = value; self }}
impl<St: status_view_state::State, S: BosStr> StatusViewBuilder<St, S> { /// Set the `labels` field (optional) pub fn labels(mut self, value: impl Into<Option<Vec<Label<S>>>>) -> Self { self._fields.5 = value.into(); self } /// Set the `labels` field to an Option value (optional) pub fn maybe_labels(mut self, value: Option<Vec<Label<S>>>) -> Self { self._fields.5 = value; self }}
impl<St, S: BosStr> StatusViewBuilder<St, S>where St: status_view_state::State, St::Record: status_view_state::IsUnset,{ /// Set the `record` field (required) pub fn record( mut self, value: impl Into<Data<S>>, ) -> StatusViewBuilder<status_view_state::SetRecord<St>, S> { self._fields.6 = Option::Some(value.into()); StatusViewBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> StatusViewBuilder<St, S>where St: status_view_state::State, St::Status: status_view_state::IsUnset,{ /// Set the `status` field (required) pub fn status( mut self, value: impl Into<StatusViewStatus<S>>, ) -> StatusViewBuilder<status_view_state::SetStatus<St>, S> { self._fields.7 = Option::Some(value.into()); StatusViewBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St: status_view_state::State, S: BosStr> StatusViewBuilder<St, S> { /// Set the `uri` field (optional) pub fn uri(mut self, value: impl Into<Option<AtUri<S>>>) -> Self { self._fields.8 = value.into(); self } /// Set the `uri` field to an Option value (optional) pub fn maybe_uri(mut self, value: Option<AtUri<S>>) -> Self { self._fields.8 = value; self }}
impl<St, S: BosStr> StatusViewBuilder<St, S>where St: status_view_state::State, St::Record: status_view_state::IsSet, St::Status: status_view_state::IsSet,{ /// Build the final struct. pub fn build(self) -> StatusView<S> { StatusView { cid: self._fields.0, embed: self._fields.1, expires_at: self._fields.2, is_active: self._fields.3, is_disabled: self._fields.4, labels: self._fields.5, record: self._fields.6.unwrap(), status: self._fields.7.unwrap(), uri: self._fields.8, extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> StatusView<S> { StatusView { cid: self._fields.0, embed: self._fields.1, expires_at: self._fields.2, is_active: self._fields.3, is_disabled: self._fields.4, labels: self._fields.5, record: self._fields.6.unwrap(), status: self._fields.7.unwrap(), uri: self._fields.8, extra_data: Some(extra_data), } }}
fn _default_verification_prefs_hide_badges() -> Option<bool> { Some(false)}
impl Default for VerificationPrefs { fn default() -> Self { Self { hide_badges: Some(false), extra_data: Default::default(), } }}
pub mod verification_state_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type TrustedVerifierStatus; type Verifications; type VerifiedStatus; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type TrustedVerifierStatus = Unset; type Verifications = Unset; type VerifiedStatus = Unset; } ///State transition - sets the `trusted_verifier_status` field to Set pub struct SetTrustedVerifierStatus<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetTrustedVerifierStatus<St> {} impl<St: State> State for SetTrustedVerifierStatus<St> { type TrustedVerifierStatus = Set<members::trusted_verifier_status>; type Verifications = St::Verifications; type VerifiedStatus = St::VerifiedStatus; } ///State transition - sets the `verifications` field to Set pub struct SetVerifications<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetVerifications<St> {} impl<St: State> State for SetVerifications<St> { type TrustedVerifierStatus = St::TrustedVerifierStatus; type Verifications = Set<members::verifications>; type VerifiedStatus = St::VerifiedStatus; } ///State transition - sets the `verified_status` field to Set pub struct SetVerifiedStatus<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetVerifiedStatus<St> {} impl<St: State> State for SetVerifiedStatus<St> { type TrustedVerifierStatus = St::TrustedVerifierStatus; type Verifications = St::Verifications; type VerifiedStatus = Set<members::verified_status>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `trusted_verifier_status` field pub struct trusted_verifier_status(()); ///Marker type for the `verifications` field pub struct verifications(()); ///Marker type for the `verified_status` field pub struct verified_status(()); }}
/// Builder for constructing an instance of this type.pub struct VerificationStateBuilder< St: verification_state_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: ( Option<VerificationStateTrustedVerifierStatus<S>>, Option<Vec<actor::VerificationView<S>>>, Option<VerificationStateVerifiedStatus<S>>, ), _type: PhantomData<fn() -> S>,}
impl VerificationState<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> VerificationStateBuilder< verification_state_state::Empty, DefaultStr, > { VerificationStateBuilder::new() }}
impl<S: BosStr> VerificationState<S> { /// Create a new builder for this type pub fn builder() -> VerificationStateBuilder<verification_state_state::Empty, S> { VerificationStateBuilder::builder() }}
impl VerificationStateBuilder<verification_state_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { VerificationStateBuilder { _state: PhantomData, _fields: (None, None, None), _type: PhantomData, } }}
impl<S: BosStr> VerificationStateBuilder<verification_state_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { VerificationStateBuilder { _state: PhantomData, _fields: (None, None, None), _type: PhantomData, } }}
impl<St, S: BosStr> VerificationStateBuilder<St, S>where St: verification_state_state::State, St::TrustedVerifierStatus: verification_state_state::IsUnset,{ /// Set the `trustedVerifierStatus` field (required) pub fn trusted_verifier_status( mut self, value: impl Into<VerificationStateTrustedVerifierStatus<S>>, ) -> VerificationStateBuilder< verification_state_state::SetTrustedVerifierStatus<St>, S, > { self._fields.0 = Option::Some(value.into()); VerificationStateBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> VerificationStateBuilder<St, S>where St: verification_state_state::State, St::Verifications: verification_state_state::IsUnset,{ /// Set the `verifications` field (required) pub fn verifications( mut self, value: impl Into<Vec<actor::VerificationView<S>>>, ) -> VerificationStateBuilder<verification_state_state::SetVerifications<St>, S> { self._fields.1 = Option::Some(value.into()); VerificationStateBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> VerificationStateBuilder<St, S>where St: verification_state_state::State, St::VerifiedStatus: verification_state_state::IsUnset,{ /// Set the `verifiedStatus` field (required) pub fn verified_status( mut self, value: impl Into<VerificationStateVerifiedStatus<S>>, ) -> VerificationStateBuilder<verification_state_state::SetVerifiedStatus<St>, S> { self._fields.2 = Option::Some(value.into()); VerificationStateBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> VerificationStateBuilder<St, S>where St: verification_state_state::State, St::TrustedVerifierStatus: verification_state_state::IsSet, St::Verifications: verification_state_state::IsSet, St::VerifiedStatus: verification_state_state::IsSet,{ /// Build the final struct. pub fn build(self) -> VerificationState<S> { VerificationState { trusted_verifier_status: self._fields.0.unwrap(), verifications: self._fields.1.unwrap(), verified_status: self._fields.2.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> VerificationState<S> { VerificationState { trusted_verifier_status: self._fields.0.unwrap(), verifications: self._fields.1.unwrap(), verified_status: self._fields.2.unwrap(), extra_data: Some(extra_data), } }}
pub mod verification_view_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; type IsValid; type Issuer; type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; type IsValid = Unset; type Issuer = Unset; type Uri = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetCreatedAt<St> {} impl<St: State> State for SetCreatedAt<St> { type CreatedAt = Set<members::created_at>; type IsValid = St::IsValid; type Issuer = St::Issuer; type Uri = St::Uri; } ///State transition - sets the `is_valid` field to Set pub struct SetIsValid<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetIsValid<St> {} impl<St: State> State for SetIsValid<St> { type CreatedAt = St::CreatedAt; type IsValid = Set<members::is_valid>; type Issuer = St::Issuer; type Uri = St::Uri; } ///State transition - sets the `issuer` field to Set pub struct SetIssuer<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetIssuer<St> {} impl<St: State> State for SetIssuer<St> { type CreatedAt = St::CreatedAt; type IsValid = St::IsValid; type Issuer = Set<members::issuer>; type Uri = St::Uri; } ///State transition - sets the `uri` field to Set pub struct SetUri<St: State = Empty>(PhantomData<fn() -> St>); impl<St: State> sealed::Sealed for SetUri<St> {} impl<St: State> State for SetUri<St> { type CreatedAt = St::CreatedAt; type IsValid = St::IsValid; type Issuer = St::Issuer; type Uri = Set<members::uri>; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `is_valid` field pub struct is_valid(()); ///Marker type for the `issuer` field pub struct issuer(()); ///Marker type for the `uri` field pub struct uri(()); }}
/// Builder for constructing an instance of this type.pub struct VerificationViewBuilder< St: verification_view_state::State, S: BosStr = DefaultStr,> { _state: PhantomData<fn() -> St>, _fields: ( Option<Datetime>, Option<bool>, Option<Did<S>>, Option<S>, Option<Handle<S>>, Option<AtUri<S>>, ), _type: PhantomData<fn() -> S>,}
impl VerificationView<DefaultStr> { /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed pub fn new() -> VerificationViewBuilder<verification_view_state::Empty, DefaultStr> { VerificationViewBuilder::new() }}
impl<S: BosStr> VerificationView<S> { /// Create a new builder for this type pub fn builder() -> VerificationViewBuilder<verification_view_state::Empty, S> { VerificationViewBuilder::builder() }}
impl VerificationViewBuilder<verification_view_state::Empty, DefaultStr> { /// Create a new builder with all fields unset, using the default string type, if needed pub fn new() -> Self { VerificationViewBuilder { _state: PhantomData, _fields: (None, None, None, None, None, None), _type: PhantomData, } }}
impl<S: BosStr> VerificationViewBuilder<verification_view_state::Empty, S> { /// Create a new builder with all fields unset pub fn builder() -> Self { VerificationViewBuilder { _state: PhantomData, _fields: (None, None, None, None, None, None), _type: PhantomData, } }}
impl<St, S: BosStr> VerificationViewBuilder<St, S>where St: verification_view_state::State, St::CreatedAt: verification_view_state::IsUnset,{ /// Set the `createdAt` field (required) pub fn created_at( mut self, value: impl Into<Datetime>, ) -> VerificationViewBuilder<verification_view_state::SetCreatedAt<St>, S> { self._fields.0 = Option::Some(value.into()); VerificationViewBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> VerificationViewBuilder<St, S>where St: verification_view_state::State, St::IsValid: verification_view_state::IsUnset,{ /// Set the `isValid` field (required) pub fn is_valid( mut self, value: impl Into<bool>, ) -> VerificationViewBuilder<verification_view_state::SetIsValid<St>, S> { self._fields.1 = Option::Some(value.into()); VerificationViewBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> VerificationViewBuilder<St, S>where St: verification_view_state::State, St::Issuer: verification_view_state::IsUnset,{ /// Set the `issuer` field (required) pub fn issuer( mut self, value: impl Into<Did<S>>, ) -> VerificationViewBuilder<verification_view_state::SetIssuer<St>, S> { self._fields.2 = Option::Some(value.into()); VerificationViewBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St: verification_view_state::State, S: BosStr> VerificationViewBuilder<St, S> { /// Set the `issuerDisplayName` field (optional) pub fn issuer_display_name(mut self, value: impl Into<Option<S>>) -> Self { self._fields.3 = value.into(); self } /// Set the `issuerDisplayName` field to an Option value (optional) pub fn maybe_issuer_display_name(mut self, value: Option<S>) -> Self { self._fields.3 = value; self }}
impl<St: verification_view_state::State, S: BosStr> VerificationViewBuilder<St, S> { /// Set the `issuerHandle` field (optional) pub fn issuer_handle(mut self, value: impl Into<Option<Handle<S>>>) -> Self { self._fields.4 = value.into(); self } /// Set the `issuerHandle` field to an Option value (optional) pub fn maybe_issuer_handle(mut self, value: Option<Handle<S>>) -> Self { self._fields.4 = value; self }}
impl<St, S: BosStr> VerificationViewBuilder<St, S>where St: verification_view_state::State, St::Uri: verification_view_state::IsUnset,{ /// Set the `uri` field (required) pub fn uri( mut self, value: impl Into<AtUri<S>>, ) -> VerificationViewBuilder<verification_view_state::SetUri<St>, S> { self._fields.5 = Option::Some(value.into()); VerificationViewBuilder { _state: PhantomData, _fields: self._fields, _type: PhantomData, } }}
impl<St, S: BosStr> VerificationViewBuilder<St, S>where St: verification_view_state::State, St::CreatedAt: verification_view_state::IsSet, St::IsValid: verification_view_state::IsSet, St::Issuer: verification_view_state::IsSet, St::Uri: verification_view_state::IsSet,{ /// Build the final struct. pub fn build(self) -> VerificationView<S> { VerificationView { created_at: self._fields.0.unwrap(), is_valid: self._fields.1.unwrap(), issuer: self._fields.2.unwrap(), issuer_display_name: self._fields.3, issuer_handle: self._fields.4, uri: self._fields.5.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data. pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> VerificationView<S> { VerificationView { created_at: self._fields.0.unwrap(), is_valid: self._fields.1.unwrap(), issuer: self._fields.2.unwrap(), issuer_display_name: self._fields.3, issuer_handle: self._fields.4, uri: self._fields.5.unwrap(), extra_data: Some(extra_data), } }}